Inter-thread communication method and related device
The invention discloses an inter-thread communication method. Sub-information included in the to-be-returned information, a thread to which the sub-information belongs and a dependency relationship between the threads to which the sub-information belongs are determined, corresponding sub-information...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | Chinese English |
Published |
06.08.2019
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses an inter-thread communication method. Sub-information included in the to-be-returned information, a thread to which the sub-information belongs and a dependency relationship between the threads to which the sub-information belongs are determined, corresponding sub-information is obtained from the head thread, the middle thread and the tail thread in sequence according to the dependency relationship; communication information of a target thread used for returning to-be-returned information is transmitted in the process of transmitting the sub-information between the threads; when the current thread is not the target thread and transmission of the sub-information and the communication information is completed, the current thread is released; when the tail thread obtains the final to-be-returned information, the communication information can be directly utilized to establish connection with the target thread, the to-be-returned information is directly transmitted to the target thread, oth |
---|---|
Bibliography: | Application Number: CN201910356949 |