Method and system for data communication based on thread pool

A technology of data communication and thread pool, applied in the direction of multi-program device, program startup/switching, etc., can solve the problems of waste of resources, waste of computing and storage resources, serious problems, etc.

Active Publication Date: 2018-01-16
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, when the processing speeds of A1 and B1 are inconsistent, one party is always in a waiting state, resulting in a waste of resources, and the waste of resources becomes more and more serious with the increase of task pairs
[0003] Therefore, how to reduc

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for data communication based on thread pool
  • Method and system for data communication based on thread pool
  • Method and system for data communication based on thread pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0043] see below figure 1 , figure 1 It is a flow chart of a thread pool-based data communication method provided by the embodiment of the present application;

[0044] Specific steps can include:

[0045] S101: Create a data processing thread and add the data processing thread to the thread pool;

[0046] Among them, the purpose of this step is t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a system for data communication based on a thread pool. The method comprises the following steps: establishing a data processing thread and adding the data processing thread to the thread pool; performing data processing operation by utilizing the data processing thread, thereby acquiring to-be-sent data; and storing the to-be-sent data to a public data sendingqueue, thereby sending the to-be-sent data to a data receiving party by a data sending thread; detecting whether the to-be-received data exist in a public data receiving queue by utilizing the data processing thread; and receiving the to-be-received data if the to-be-received data exist. According to the method, the calculation and storage resource waste caused by the sender and the receiver waiting for the processing information of the other party can be reduced, the working complexity is reduced and the working efficiency is increased. The invention also discloses the system for data communication based on the thread pool, a computer readable storage medium and a server with the beneficial effects.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a thread pool-based data communication method and system, a computer-readable storage medium and a server. Background technique [0002] During the working process of computer application programs, it often occurs that multiple programs work together. For example, program A processes data and sends it to program B through the network, and program B continues to process the data. This processing method is usually referred to as a synchronous processing method. In this way, when program A sends data is unknown to program B, so program B can only stop and wait for program A to send data before program A finishes processing the data; similarly, when program A needs to send data to program B, But when program B has not finished processing, program A has to stop and wait for program B to receive. When the amount of data is large, multitasking is usually used to improve the data processing...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/48
Inventor 玄加林
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products