One-time initialization
Abstract
Aspects of the present invention are directed at providing safe and efficient ways for a program to perform a one-time initialization of a data item in a multi-threaded environment. In accordance with one embodiment, a method is provided that allows a program to perform a synchronized initialization of a data item that may be accessed by multiple threads. More specifically, the method includes receiving a request to initialize the data item from a current thread. In response to receiving the request, the method determines whether the current thread is the first thread to attempt to initialize the data item. If the current thread is the first thread to attempt to initialize the data item, the method enforces mutual exclusion and blocks other attempts to initialize the data item made by concurrent threads. Then, the current thread is allowed to execute program code provided by the program to initialize the data item.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A non-blocking method performed on a computer that includes at least one processor and memory, the non-blocking method for initializing data, the non-blocking method comprising: creating, by the computer prior to an attempt by a first-in-time thread to initialize the data, an initialization primitive that is configured for indicating each of three states of the data, the three states comprising: uninitialized, initializing, and initialized; allowing, in response to the attempt to initialize the data and to the initialization primitive indicating that the data is in the uninitialized state, con
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (19)
Non-Patent Literature (5)
- "Alpha Architecture Handbook, Chapter 5.6.1.7 Definition of Dependence Constraints", Digital Equipment Corporation, Oct. 1996.
- "pthread-once-dynamic package initialization", The Open Group Base Specifications Issue 6, IEEE Std 1003.1, published on or before Apr. 16, 2004.
- Bacon, "The "Double-Checked Locking is Broken" Declaration", published on or before Apr. 16, 2004.
- Birrell, "An Introduction to Programming with Threads", Jan. 6, 1989.
- Coffey, "Double-checked Locking (DCL) and how to fix it (ctd)", Published on or before Jan. 25, 2009.