Synchronizing multiple threads efficiently
Abstract
In one embodiment, the present invention includes a method of assigning a location within a shared variable for each of multiple threads and writing a value to a corresponding location to indicate that the corresponding thread has reached a barrier. In such manner, when all the threads have reached the barrier, synchronization is established. In some embodiments, the shared variable may be stored in a cache accessible by the multiple threads. Other embodiments are described and claimed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 6.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method comprising: assigning one of a plurality of locations within a shared variable stored in a last level cache shared by and accessible to at least two processors for each of multiple threads, each of the plurality of locations within the shared variable readable by all of the multiple threads but only writable by one of the multiple threads; and writing a value to a corresponding location within the shared variable assigned to a first thread to indicate that the first thread reached a barrier, the shared variable to indicate a synchronization status for the multiple threads at the barri
- Claim 2Depends on #1
The method of claim 1 , wherein each of the plurality of locations comprises a byte of the shared variable.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (3)
- E.I. COMPENDEX No: 1991030082382 High speed synchronization of processors using fuzzy barriers. Gupta, Rajiv: Univ of Pittsburgh, Pittsburgh, United States International Journal of Parallel Programming ( Int J Parallel Program ) 1990 19/1 (53-73) Publication Date: 19901201.
- Gale Group PROMT(R) (c) 2009 Gale/Cengage. Supplier Number: 93792719 Mastering concurrency: correctly implementing concurrency in computer software is vital for accurate computational modelling, and for the safety and reliability of embedded control systems. (IT). Moores, Jim Nuclear Engineering Int
- The Patent Office of the State Intellectual Property Office of the People's Republic of China, Third Office Action dated May 8, 2009, in a related application.