Unlock instant, AI-driven research and patent intelligence for your innovation.

Inter-thread communication method and related device

A communication method and inter-thread technology, applied in the computer field, can solve problems such as waste of resources

Active Publication Date: 2021-01-08
HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The object of the present invention is to provide an inter-thread communication method, system, device, and computer-readable storage medium to solve the resource waste problem in the prior art in the thread concurrent process

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
  • Inter-thread communication method and related device
  • Inter-thread communication method and related device
  • Inter-thread communication method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0040] The embodiment of the present invention discloses an inter-thread communication method, system, device and computer-readable storage medium, so as to solve the resource waste problem in the thread concurrent process in the prior art.

[0041] see figure 2 , an inter-thread communication method provided by an embodiment of the present invention specifically includes:

[0042] S101. Determine sub-information included in the information to be re...

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 an inter-thread communication method, which determines the sub-information included in the information to be returned, the thread to which the sub-information belongs, and the dependency relationship between the threads, and obtains the corresponding information from the first thread, the middle thread, and the tail thread in sequence according to the dependency relationship. Sub-information, in the process of transferring sub-information between threads, transfers the communication information used to return the target thread of the information to be returned, and releases the current thread when the current thread is not the target thread and completes the transfer of sub-information and communication information, when the end When the thread obtains the final information to be returned, it can directly use the communication information to establish a connection with the target thread, and directly transmit the information to be returned to the target thread, while other threads do not need to wait, and are released when the transfer of sub-information and communication information is completed , which can avoid the blocking of a large number of threads and reduce the waste of thread resources. The present application also provides an inter-thread communication system, device, and computer-readable storage medium, which can also achieve the above-mentioned technical effects.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, relates to an inter-thread communication method, system, device, and computer-readable storage medium. Background technique [0002] In computer technology, in order to make more effective use of CPU resources, different services are usually placed on different threads to run, and services are communicated through signals between threads, which is called concurrent programming. [0003] However, there are too many information exchanges between threads, and the internal information of threads will be interdependent, such as figure 1 As shown, data A can be obtained in thread 1, data B can be obtained in thread 2, and data C can be obtained in thread 3. When data ((AB)C) needs to be obtained, there will be such a dependency , that is, you need to get data A from thread 1 first, then use data A to get data (AB) from thread 2, then get data ((AB)C) from thread 3, and...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54
CPCG06F9/543G06F9/546
Inventor 何保良
Owner HANGZHOU TUYA INFORMATION TECH CO LTD