Method and device for accessing shared data between multiple threads
A data-sharing and multi-threading technology, which is applied in the field of accessing shared data between multiple threads, can solve the problem of multiple forwarding thread blocking, and achieve the effect of avoiding thread blocking
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0035] In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more embodiments. It may be evident, however, that these embodiments may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to facilitate describing one or more embodiments.
[0036] In the prior art, forwarding threads access shared data in parallel using a lock mechanism, which is likely to cause blocking between forwarding threads. In order to realize the lock-free access mechanism of forwarding threads to shared data, the present invention utilizes the atomic operation of the operating system The mechanism, that is, the assignment and read operations of simple variables are atomic, and the forwarding thread's access to shared data is converted into an atomic operation to ensure that the timing of the forwarding thread's reading...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


