CN110096378A - A kind of inter-thread communication method and relevant apparatus - Google Patents
A kind of inter-thread communication method and relevant apparatus Download PDFInfo
- Publication number
- CN110096378A CN110096378A CN201910356949.8A CN201910356949A CN110096378A CN 110096378 A CN110096378 A CN 110096378A CN 201910356949 A CN201910356949 A CN 201910356949A CN 110096378 A CN110096378 A CN 110096378A
- Authority
- CN
- China
- Prior art keywords
- thread
- information
- sub
- communication
- subject
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of inter-thread communication methods, determine the sub-information that information to be returned includes, dependence between the affiliated thread of sub-information and affiliated thread, according to the dependence successively from first thread, intermediate thread, buttock line journey obtains corresponding sub-information, the communication information for returning to the subject thread of information to be returned is transmitted during cross-thread transmits sub-information, and current thread is discharged not when being not subject thread and completing the transmitting of sub-information and the communication information in current thread, when buttock line journey gets final information to be returned, can connection directly be established using the communication information and subject thread, information to be returned is directly transmitted to subject thread, and other threads are without waiting, it is just released when completing the transmitting of sub-information and the communication information, it can be to avoid the obstruction of a large amount of threads, reduce the waste of thread resources.Present invention also provides a kind of inter-thread communication system, device and computer readable storage mediums, and above-mentioned technical effect equally may be implemented.
Description
Technical field
The present invention relates to field of computer technology, more specifically to a kind of inter-thread communication method, system, device
And computer readable storage medium.
Background technique
In computer technology, cpu resource is utilized in order to significantly more efficient, it will usually which different business is placed on difference
Thread on run, communicated between business i.e. thread by signal, here it is so-called towards concurrency programming.
But amount of information exchange is excessive between thread, thread internal information has relation of interdependence, as shown in Figure 1, line
It is available in journey 1 to arrive data A, it is available in thread 2 to arrive data B, it is available in thread 3 to arrive data C, when needing to obtain
When to data ((AB) C), such dependence is just had, i.e., first to arrive thread 1 and obtain data A, then with data A to thread 2
Data (AB) is got, then gets data ((AB) C) into thread 3 again, then opposite direction passes through data ((AB) C) again
Thread 2 returns to thread 1, returns to thread 1 by data ((AB) C).
Since the transmitting of data can only be carried out in adjacent cross-thread, thread 1, thread 2 will rely on pass between thread 3
System, when there is dependence, all threads being related to require that final data ((AB) C) is waited to get, and via oneself
It can be just released after forwarding, would be at blocked state in waiting time thread, there are certain wastings of resources.
When the complementary thread involved in the data is excessive, the thread in blocked state also can be more, and
And the time of per thread obstruction also can be longer, therefore can bring the biggish wasting of resources.
Therefore, the wasting of resources in thread concurrent process how is avoided, is those skilled in the art's problem to be solved.
Summary of the invention
The purpose of the present invention is to provide a kind of inter-thread communication method, system, device and computer readable storage medium,
To solve the problem of resource waste in thread concurrent process in the prior art.
To achieve the above object, the embodiment of the invention provides following technical solutions:
A kind of inter-thread communication method, comprising:
Determine the sub-information that information to be returned includes, the affiliated thread of the sub-information institute corresponding with the information to be returned
Dependence between thread belonging to stating;
The first sub-information is obtained in first thread according to the dependence, the communication of the first sub-information and subject thread is believed
The incoming intermediate thread of breath;Wherein, the subject thread is the thread for returning to the information to be returned;
The second sub-information is obtained in the intermediate thread, by first sub-information, second sub-information and the mesh
The communication information of graticule journey is passed to buttock line journey, discharges the non-targeted thread in the intermediate thread;
Third sub-information is obtained in the buttock line journey, and establishes the buttock line using the communication information of the subject thread
The communication connection of journey and the subject thread, so that the buttock line journey will include first sub-information, second sub-information
The subject thread is sent to the information to be returned of the third sub-information.
Wherein, the communication information includes Thread Id.
Wherein, described to be obtained according to the dependence in first thread when the subject thread is the intermediate thread
First sub-information, after the incoming intermediate thread of the communication information of the first sub-information and subject thread, further includes:
Discharge the first thread.
Wherein, the subject thread is the first thread.
To achieve the above object, present invention also provides a kind of inter-thread communication systems, comprising:
Determining module, for determining the sub-information that information to be returned includes, the affiliated thread of the sub-information with described wait return
Dependence between the corresponding affiliated thread of breath of writing in reply;
First sub-information obtains module, for obtaining the first sub-information in first thread according to the dependence, by first
The incoming intermediate thread of the communication information of sub-information and subject thread;Wherein, the subject thread is described to be returned for returning
The thread of information;
Second sub-information obtains module, for obtaining the second sub-information in the intermediate thread, by first sub-information,
The communication information of second sub-information and the subject thread is passed to buttock line journey, discharges the non-targeted line in the intermediate thread
Journey;
Third sub-information obtains module, for obtaining third sub-information in the buttock line journey, and utilizes the score
The communication information of journey establishes the communication connection of the buttock line journey and the subject thread, so that the buttock line journey will include described the
The information to be returned of one sub-information, second sub-information and the third sub-information is sent to the subject thread.
Wherein, the communication information includes Thread Id.
Wherein, when the subject thread is the intermediate thread, the system also includes:
First thread release module obtains the first sub-information in first thread according to the dependence for described, by first
After the incoming intermediate thread of the communication information of sub-information and subject thread, the first thread is discharged.
Wherein, the subject thread is the first thread.
To achieve the above object, present invention also provides a kind of inter-thread communication devices, comprising:
Memory, for storing computer program;
Processor is realized when for executing the computer program such as the step of the inter-thread communication method.
To achieve the above object, described computer-readable to deposit present invention also provides a kind of computer readable storage medium
It is stored with computer program on storage media, such as the inter-thread communication method is realized when the computer program is executed by processor
The step of.
By above scheme it is found that a kind of inter-thread communication method provided by the invention, comprising: determine packet to be returned
The sub-information that includes, the affiliated thread of the sub-information it is corresponding with the information to be returned it is described belonging to dependence between thread close
System;The first sub-information is obtained in first thread according to the dependence, the communication information of the first sub-information and subject thread is passed
Enter intermediate thread;Wherein, the subject thread is the thread for returning to the information to be returned;It is obtained in the intermediate thread
The communication information of first sub-information, the second sub-information and the subject thread is passed to buttock line journey, release by the second sub-information
Non-targeted thread in the intermediate thread;Third sub-information is obtained in the buttock line journey, and utilizes the subject thread
The communication information establishes the communication connection of the buttock line journey and the subject thread, so that the buttock line journey will include first son
The information to be returned of information, second sub-information and the third sub-information is sent to the subject thread.
It can be seen that a kind of inter-thread communication method provided by the present application, it is first determined the son letter that information to be returned includes
Dependence between breath, the affiliated thread of sub-information and affiliated thread, then according to the dependence successively from first thread, in
Between thread, buttock line journey obtain corresponding sub-information, and transmitting is to be returned for returning during cross-thread transmits sub-information
The communication information of the subject thread of information, and be not subject thread and the transmitting for completing sub-information and the communication information in current thread
When just discharge current thread, when buttock line journey gets final information to be returned, can directly utilize the communication information and target
Thread establishes connection, directly transmits information to be returned to subject thread, and other threads are without waiting, completes sub-information and logical
It is just released when the transmitting of letter information, therefore the waste of thread resources can be reduced to avoid the obstruction of a large amount of threads.The application is also
A kind of inter-thread communication system, device and computer readable storage medium are provided, above-mentioned technical effect equally may be implemented.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is prior art inter-thread communication method flow diagram;
Fig. 2 is a kind of inter-thread communication method flow diagram disclosed by the embodiments of the present invention;
Fig. 3 is a kind of specific inter-thread communication method flow diagram disclosed by the embodiments of the present invention;
Fig. 4 is a kind of inter-thread communication system structure diagram disclosed by the embodiments of the present invention;
Fig. 5 is a kind of inter-thread communication apparatus structure schematic diagram disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of inter-thread communication method, system, device and computer readable storage medium, with
Solve the problem of resource waste in thread concurrent process in the prior art.
Referring to fig. 2, a kind of inter-thread communication method provided in an embodiment of the present invention, specifically includes:
S101 determines sub-information, the affiliated thread of the sub-information and the information pair to be returned that information to be returned includes
The dependence between the affiliated thread answered.
Information to be returned, the final data that information to be returned namely needs thread intercommunication to obtain are determined first.
The information to be returned includes sub-information, the dependence belonging to each sub-information between thread and thread.
For example, information to be returned is ((AB) C), the sub-information that information to be returned includes then is data A, data B, data C.
Thread 1 can obtain data A, and thread 2 can obtain data B, and thread 3 can obtain data C, then the dependence between thread is first to want
Data A is obtained to thread 1, then gets data (AB) with data A to thread 2, then gets data into thread 3 again
((AB) C), then data ((AB) C) is returned to thread 1 by thread 2 by opposite direction again, returns thread 1 by data ((AB) C)
It returns.
S102 obtains the first sub-information in first thread according to the dependence, by the first sub-information and subject thread
The incoming intermediate thread of the communication information;Wherein, the subject thread is the thread for returning to the information to be returned.
Specifically, the first sub-information first is obtained in first thread according to dependence.It should be noted that first thread obtains
The thread of first sub-information, namely the beginning of entire dependence.
The first sub-information is obtained in first thread first, then passes the communication information of the first sub-information and subject thread
Enter intermediate thread.
It should be noted that subject thread is to be used to return the thread of information to be returned, either first thread can also be with
It is not first thread.In this step, it is thus necessary to determine that the communication information of subject thread, and medium line is passed to together with the first information
Journey.
In a specific embodiment, when subject thread is not first thread, as subject thread be intermediate thread when,
It is described to obtain the first sub-information in first thread according to the dependence, the communication information of the first sub-information and subject thread is passed
After entering intermediate thread, further includes: the release first thread.Be discharge first thread can to avoid the obstruction of first thread, thus
Avoid the waste of thread resources.
Under normal circumstances, information to be returned is obtained since first thread, can also be returned from first thread, thus for convenience to
The return of return information, in the present solution, it is preferred that using first thread as subject thread.
The communication of cross-thread can generally be carried out with Thread Id, therefore in the present solution, the communication information of subject thread can
To be its Thread Id.
S103 obtains the second sub-information in the intermediate thread, by first sub-information, second sub-information and institute
The communication information for stating subject thread is passed to buttock line journey, discharges the non-targeted thread in the intermediate thread.
Specifically, the second sub-information is obtained in intermediate thread.
It should be noted that intermediate thread can be a thread and be also possible to multiple threads.When intermediate thread have it is multiple
When, then it needs successively to obtain corresponding sub-information from each intermediate thread according to dependence, then receives current thread
To sub-information, the communication information of the sub-information and subject thread that are got from current thread be passed to next thread together
In, repeat a step to the last intermediate thread.
The final sub-information that intermediate thread is got be the second sub-information, by the first sub-information, the second sub-information with
The communication information of subject thread is passed to the last one corresponding thread, i.e. buttock line journey in dependence, then discharges intermediate thread
In all non-targeted threads.
It should be noted that since subject thread may be one in intermediate thread, and subject thread is due to also needing
Data to be returned are returned so cannot be released, are all non-targeted threads that discharge in intermediate thread in this step therefore.
And when intermediate thread has multiple, specific release process can be whenever having an intermediate thread for current thread
The communication information of the sub-information, the sub-information and subject thread that get from current thread that receive is passed to next together
After thread, and it is not subject thread, just discharges current thread.
S104 obtains third sub-information in the buttock line journey, and establishes institute using the communication information of the subject thread
The communication connection of buttock line journey Yu the subject thread is stated, so that the buttock line journey will include first sub-information, described second
The information to be returned of sub-information and the third sub-information is sent to the subject thread.
After obtaining third sub-information to the end in buttock line journey, that is, got all information to be returned, due to
The communication information of subject thread is also carried while transmitting between the online journey of sub-information in this programme, therefore is needing to make score
When journey returns to information to be returned, does not need to return according to thread path opposite direction when obtaining information to be returned, but pass through
Information to be returned directly with the point-to-point connection of subject thread, is sent to subject thread, makes mesh by the communication information of subject thread
Graticule journey returns to information to be returned.
It can be seen that a kind of inter-thread communication method provided by the embodiments of the present application, it is first determined information to be returned includes
Sub-information, the dependence between the affiliated thread of sub-information and affiliated thread, then according to the dependence successively from head
Thread, intermediate thread, buttock line journey obtain corresponding sub-information, and transmit during cross-thread transmits sub-information for returning
The communication information of the subject thread of information to be returned, and be not subject thread in current thread and complete sub-information and the communication information
Transmitting when just discharge current thread, when buttock line journey gets final information to be returned, can directly utilize the communication information
Connection is established with subject thread, directly transmits information to be returned to subject thread, and other threads are without waiting, complete son letter
It is just released when ceasing the transmitting with the communication information, therefore the waste of thread resources can be reduced to avoid the obstruction of a large amount of threads.
A kind of specific inter-thread communication method provided by the embodiments of the present application is introduced below, described below one
The specific inter-thread communication method of kind and above-described embodiment can be with cross-reference.
Referring to Fig. 3, in a kind of specific inter-thread communication method provided by the embodiments of the present application, it is first determined letter to be returned
Breath is ((AB) C), and the sub-information that information to be returned includes then is data A, data B, data C.Thread 1 can obtain data A, thread
2 can obtain data B, and thread 3 can obtain data C, then the dependence between thread is first to arrive thread 1 to obtain data A, then use
Data A gets data (AB) to thread 2, then gets data ((AB) C) into thread 3 again, then opposite direction will count again
Thread 1 is returned to by thread 2 according to ((AB) C), returns to thread 1 by data ((AB) C).
In the present solution, subject thread position, that is, thread 1, obtains data A first, in accordance with dependence in thread 1, then will
Thread Id, the data A of thread 1 are transferred to thread 2;Data B is obtained in thread 2, and by data (AB), the thread of thread 1
ID is transferred to thread 3, and thread 2 is discharged;Data C is obtained in thread 3, is obtained data to be returned ((AB) C), and thread 3 utilizes
The Thread Id of thread 1 is connect with thread 1, and data to be returned ((AB) C) are directly transferred to thread 1, make thread 1 by number to be returned
According to return.
A kind of inter-thread communication system provided by the embodiments of the present application is introduced below, a kind of thread described below
Between communication system can be cross-referenced with any of the above-described embodiment.
Referring to fig. 4, a kind of inter-thread communication system provided by the embodiments of the present application, specifically includes:
Determining module 201, for determine the sub-information that information to be returned includes, the affiliated thread of the sub-information and it is described to
Dependence between the corresponding affiliated thread of return information.
First sub-information obtains module 202, for obtaining the first sub-information in first thread according to the dependence, by the
The incoming intermediate thread of the communication information of one sub-information and subject thread;Wherein, the subject thread is described wait return for returning
The thread of letter in reply breath.
Second sub-information obtains module 203, and for obtaining the second sub-information in the intermediate thread, first son is believed
The communication information of breath, the second sub-information and the subject thread is passed to buttock line journey, discharges the non-targeted line in the intermediate thread
Journey.
Third sub-information obtains module 204, for obtaining third sub-information in the buttock line journey, and utilizes the target
The communication information of thread establishes the communication connection of the buttock line journey and the subject thread, so that the buttock line journey will include described
The information to be returned of first sub-information, second sub-information and the third sub-information is sent to the subject thread.
In a specific embodiment, the communication information includes Thread Id.
In a specific embodiment, when the subject thread is the intermediate thread, the system also includes:
First thread release module obtains the first sub-information in first thread according to the dependence for described, by first
After the incoming intermediate thread of the communication information of sub-information and subject thread, the first thread is discharged.
In a specific embodiment, the subject thread is the first thread.
The inter-thread communication system of the present embodiment is for realizing inter-thread communication method above-mentioned, therefore inter-thread communication system
The embodiment part of the visible inter-thread communication method hereinbefore of specific embodiment in system, for example, determining module 201, the
One sub-information obtains module 202, and the second sub-information obtains module 203, and third sub-information obtains module 204, is respectively used to realize
Step S101, S102, S103 and S104 in above-mentioned inter-thread communication method, so, specific embodiment is referred to accordingly
Various pieces embodiment description, details are not described herein.
Present invention also provides a kind of inter-thread communication devices, referring to Fig. 5, a kind of cross-thread provided in an embodiment of the present invention
The structure chart of communication device, as shown in Figure 5, comprising:
Memory 100, for storing computer program;
Step provided by above-described embodiment may be implemented in processor 200 when for executing the computer program.
Specifically, memory 100 includes non-volatile memory medium, built-in storage.Non-volatile memory medium storage
There are operating system and computer-readable instruction, which is that the operating system and computer in non-volatile memory medium can
The operation of reading instruction provides environment.Processor 200 provides calculating and control ability for inter-thread communication device, may be implemented above-mentioned
Step provided by any cross-thread communication means embodiment.
On the basis of the above embodiments, preferably, the inter-thread communication device further include:
Input interface 300 is controlled through processor and is saved for obtaining computer program, parameter and the instruction of external importing
Into memory.The input interface 300 can be connected with input unit, receive parameter or instruction that user is manually entered.This is defeated
Entering device can be the touch layer covered on display screen, be also possible to the key being arranged in terminal enclosure, trace ball or Trackpad,
It is also possible to keyboard, Trackpad or mouse etc..
Display unit 400, the data sent for video-stream processor.The display unit 400 can be the display in PC machine
Screen, liquid crystal display or electric ink display screen etc..
The network port 500, for being communicatively coupled with external each terminal device.Skill is communicated used by the communication connection
Art can be cable communicating technology or wireless communication technique, as mobile high definition chained technology (MHL), universal serial bus (USB),
High-definition media interface (HDMI), Bluetooth Communication Technology, the low-power consumption bluetooth communication technology, is based on adopting wireless fidelity technology (WiFi)
The communication technology etc. of IEEE802.11s.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the computer
Step provided by above-described embodiment may be implemented when program is executed by processor.The storage medium may include: USB flash disk, movement
Hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), the various media that can store program code such as magnetic or disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of inter-thread communication method characterized by comprising
Determine the sub-information that information to be returned includes, the affiliated thread of the sub-information institute corresponding with the information to be returned
Belong to the dependence between thread;
The first sub-information is obtained in first thread according to the dependence, the communication information of the first sub-information and subject thread is passed
Enter intermediate thread;Wherein, the subject thread is the thread for returning to the information to be returned;
The second sub-information is obtained in the intermediate thread, by first sub-information, second sub-information and the score
The communication information of journey is passed to buttock line journey, discharges the non-targeted thread in the intermediate thread;
In the buttock line journey obtain third sub-information, and using the communication information of the subject thread establish the buttock line journey with
The communication connection of the subject thread, so that the buttock line journey will include first sub-information, second sub-information and institute
The information to be returned for stating third sub-information is sent to the subject thread.
2. the method according to claim 1, wherein the communication information includes Thread Id.
3. the method according to claim 1, wherein when the subject thread be the intermediate thread when, it is described
Obtain the first sub-information in first thread according to the dependence, by the communication information of the first sub-information and subject thread it is incoming in
Between after thread, further includes:
Discharge the first thread.
4. according to claim 1 to method described in 3 any one, which is characterized in that the subject thread is the first thread.
5. a kind of inter-thread communication system characterized by comprising
Determining module, sub-information, the affiliated thread of the sub-information and the letter to be returned for including for determining information to be returned
Cease the dependence between the corresponding affiliated thread;
First sub-information obtains module, and for obtaining the first sub-information in first thread according to the dependence, the first son is believed
The incoming intermediate thread of the communication information of breath and subject thread;Wherein, the subject thread is for returning to the information to be returned
Thread;
Second sub-information obtains module, for obtaining the second sub-information in the intermediate thread, by first sub-information, described
The communication information of second sub-information and the subject thread is passed to buttock line journey, discharges the non-targeted thread in the intermediate thread;
Third sub-information obtains module, for obtaining third sub-information in the buttock line journey, and utilizes the subject thread
The communication information establishes the communication connection of the buttock line journey and the subject thread, so that the buttock line journey will include first son
The information to be returned of information, second sub-information and the third sub-information is sent to the subject thread.
6. system according to claim 5, which is characterized in that the communication information includes Thread Id.
7. system according to claim 5, which is characterized in that described when the subject thread is the intermediate thread
System further include:
First thread release module obtains the first sub-information in first thread according to the dependence for described, the first son is believed
Breath discharges the first thread with after the incoming intermediate thread of the communication information of subject thread.
8. according to system described in claim 5 to 7 any one, which is characterized in that the subject thread is the first thread.
9. a kind of inter-thread communication device characterized by comprising
Memory, for storing computer program;
Processor realizes the inter-thread communication method as described in any one of Claims 1-4 when for executing the computer program
The step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, realizing the inter-thread communication method as described in any one of Claims 1-4 when the computer program is executed by processor
Step.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910356949.8A CN110096378B (en) | 2019-04-29 | 2019-04-29 | Inter-thread communication method and related device |
CN202011531111.7A CN112631802B (en) | 2019-04-29 | 2019-04-29 | Inter-thread communication method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910356949.8A CN110096378B (en) | 2019-04-29 | 2019-04-29 | Inter-thread communication method and related device |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011531111.7A Division CN112631802B (en) | 2019-04-29 | 2019-04-29 | Inter-thread communication method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110096378A true CN110096378A (en) | 2019-08-06 |
CN110096378B CN110096378B (en) | 2021-01-08 |
Family
ID=67446544
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011531111.7A Active CN112631802B (en) | 2019-04-29 | 2019-04-29 | Inter-thread communication method and related device |
CN201910356949.8A Active CN110096378B (en) | 2019-04-29 | 2019-04-29 | Inter-thread communication method and related device |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011531111.7A Active CN112631802B (en) | 2019-04-29 | 2019-04-29 | Inter-thread communication method and related device |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN112631802B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112631802A (en) * | 2019-04-29 | 2021-04-09 | 杭州涂鸦信息技术有限公司 | Inter-thread communication method and related device |
CN114567520A (en) * | 2020-11-26 | 2022-05-31 | 华为技术有限公司 | Method, computer equipment and communication system for realizing collective communication |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1008934A2 (en) * | 1998-12-08 | 2000-06-14 | Sun Microsystems, Inc. | Method and apparatus for user level monitor implementation |
CN1512326A (en) * | 2002-11-12 | 2004-07-14 | ض� | Method and device for serial exclusive body |
CN101213527A (en) * | 2005-06-29 | 2008-07-02 | 英特尔公司 | Method, device and system for caching |
CN101686144A (en) * | 2008-09-22 | 2010-03-31 | 华为技术有限公司 | Method and system for processing data and node device |
CN105700939A (en) * | 2016-04-21 | 2016-06-22 | 北京京东尚科信息技术有限公司 | Method and system for multi-thread synchronization in distributed system |
CN107741883A (en) * | 2017-09-29 | 2018-02-27 | 武汉斗鱼网络科技有限公司 | A kind of method, apparatus and computer equipment for avoiding thread block |
CN107861817A (en) * | 2017-11-30 | 2018-03-30 | 努比亚技术有限公司 | Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread block |
CN108509260A (en) * | 2018-01-31 | 2018-09-07 | 深圳市万普拉斯科技有限公司 | Thread identifying processing method, apparatus, computer equipment and storage medium |
CN108595282A (en) * | 2018-05-02 | 2018-09-28 | 广州市巨硅信息科技有限公司 | A kind of implementation method of high concurrent message queue |
CN109582474A (en) * | 2018-11-02 | 2019-04-05 | 哈尔滨工业大学 | A kind of novel cache optimization multithreading Deterministic Methods |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009093526A (en) * | 2007-10-11 | 2009-04-30 | Sysmex Corp | Interprocess communication system, data structure, interprocess communication controller, interprocess communication control method and computer program |
US8572628B2 (en) * | 2010-12-02 | 2013-10-29 | International Business Machines Corporation | Inter-thread data communications in a computer processor |
CN105468462B (en) * | 2014-08-14 | 2020-11-03 | 腾讯科技(深圳)有限公司 | Method and system for interprocess communication identity verification and communication between application software |
CN108011909B (en) * | 2016-10-28 | 2020-09-01 | 北京市商汤科技开发有限公司 | Communication method and system, electronic device and computer cluster |
CN106980544B (en) * | 2017-03-31 | 2020-03-03 | 北京奇艺世纪科技有限公司 | Thread synchronization method and thread synchronization system |
CN107102582B (en) * | 2017-04-07 | 2019-07-26 | 深圳怡化电脑股份有限公司 | A kind of synchronous method and device of subsystem command |
CN107391125B (en) * | 2017-07-03 | 2021-01-15 | 中国船舶重工集团公司第七一九研究所 | User interface design method for man-machine interaction under VxWorks system |
CN109660569B (en) * | 2017-10-10 | 2021-10-15 | 武汉斗鱼网络科技有限公司 | Multitask concurrent execution method, storage medium, device and system |
CN108052396B (en) * | 2017-11-27 | 2021-05-07 | 深圳市恒扬数据股份有限公司 | Resource allocation method and system |
CN108804211A (en) * | 2018-04-27 | 2018-11-13 | 西安华为技术有限公司 | Thread scheduling method, device, electronic equipment and storage medium |
CN109002364B (en) * | 2018-06-29 | 2021-03-30 | Oppo(重庆)智能科技有限公司 | Method for optimizing inter-process communication, electronic device and readable storage medium |
CN109032793B (en) * | 2018-07-11 | 2021-03-16 | Oppo广东移动通信有限公司 | Resource allocation method, device, terminal and storage medium |
CN109656983A (en) * | 2018-12-14 | 2019-04-19 | 北京向上心科技有限公司 | Information cuing method, information presentation device, server and readable storage medium storing program for executing |
CN112631802B (en) * | 2019-04-29 | 2024-04-12 | 杭州涂鸦信息技术有限公司 | Inter-thread communication method and related device |
-
2019
- 2019-04-29 CN CN202011531111.7A patent/CN112631802B/en active Active
- 2019-04-29 CN CN201910356949.8A patent/CN110096378B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1008934A2 (en) * | 1998-12-08 | 2000-06-14 | Sun Microsystems, Inc. | Method and apparatus for user level monitor implementation |
CN1512326A (en) * | 2002-11-12 | 2004-07-14 | ض� | Method and device for serial exclusive body |
CN101213527A (en) * | 2005-06-29 | 2008-07-02 | 英特尔公司 | Method, device and system for caching |
CN101686144A (en) * | 2008-09-22 | 2010-03-31 | 华为技术有限公司 | Method and system for processing data and node device |
CN105700939A (en) * | 2016-04-21 | 2016-06-22 | 北京京东尚科信息技术有限公司 | Method and system for multi-thread synchronization in distributed system |
CN107741883A (en) * | 2017-09-29 | 2018-02-27 | 武汉斗鱼网络科技有限公司 | A kind of method, apparatus and computer equipment for avoiding thread block |
CN107861817A (en) * | 2017-11-30 | 2018-03-30 | 努比亚技术有限公司 | Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread block |
CN108509260A (en) * | 2018-01-31 | 2018-09-07 | 深圳市万普拉斯科技有限公司 | Thread identifying processing method, apparatus, computer equipment and storage medium |
CN108595282A (en) * | 2018-05-02 | 2018-09-28 | 广州市巨硅信息科技有限公司 | A kind of implementation method of high concurrent message queue |
CN109582474A (en) * | 2018-11-02 | 2019-04-05 | 哈尔滨工业大学 | A kind of novel cache optimization multithreading Deterministic Methods |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112631802A (en) * | 2019-04-29 | 2021-04-09 | 杭州涂鸦信息技术有限公司 | Inter-thread communication method and related device |
CN112631802B (en) * | 2019-04-29 | 2024-04-12 | 杭州涂鸦信息技术有限公司 | Inter-thread communication method and related device |
CN114567520A (en) * | 2020-11-26 | 2022-05-31 | 华为技术有限公司 | Method, computer equipment and communication system for realizing collective communication |
CN114567520B (en) * | 2020-11-26 | 2023-06-02 | 华为技术有限公司 | Method for realizing collective communication, computer equipment and communication system |
Also Published As
Publication number | Publication date |
---|---|
CN112631802A (en) | 2021-04-09 |
CN110096378B (en) | 2021-01-08 |
CN112631802B (en) | 2024-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI239187B (en) | System and method for managing and validating remote keys which correspond to outstanding data transactions | |
CN109525605A (en) | A kind of account management method, device, system and computer readable storage medium | |
CN110309088B (en) | ZYNQ FPGA chip, data processing method thereof and storage medium | |
CN103460202A (en) | Facilitating, at least in part, by circuitry, accessing of at least one controller command interface | |
CN110096378A (en) | A kind of inter-thread communication method and relevant apparatus | |
CN109344098A (en) | Data operation method and device between master device and slave device | |
WO2022179486A1 (en) | Multi-core processor task scheduling method and apparatus, and device and storage medium | |
CN112732628A (en) | Inter-core data processing method and system, system on chip and electronic equipment | |
CN109040221A (en) | A kind of data transmission method, system, equipment and storage array and storage medium | |
CN108445788A (en) | A kind of hotel's scenery control method and relevant apparatus | |
CN104683486B (en) | Method, apparatus, the distributed system of synchronization message are handled in distributed system | |
CN110008003A (en) | A kind of order line validation checking method and relevant apparatus | |
CN111158905A (en) | Method and device for adjusting resources | |
CN109474683A (en) | A kind of node configuration method and relevant apparatus | |
CN110070444A (en) | A kind of block chain transaction flow management method and relevant apparatus | |
CN110659043B (en) | Firmware upgrading method, device, equipment and storage medium | |
CN109408192A (en) | A kind of Linux server management method and relevant apparatus | |
CN104951325B (en) | A kind of information display method and electronic equipment | |
CN109413180A (en) | A kind of collecting method, system and equipment and storage medium | |
CN110012240A (en) | A kind of signal source switch method, system, storage medium and control host | |
CN109117340A (en) | A kind of mobile terminal and its monitoring method, the storage medium of interprocess communication | |
CN109032814A (en) | A kind of mobile terminal and its monitoring method, the storage medium of interprocess communication | |
CN101894082B (en) | Storage device and smartphone system | |
JP2011028333A (en) | Circuit information generation device, function execution system and program | |
CN110045929B (en) | Mounting point management method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |