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: 4 · Forward citations: 0.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
In a computer with an operating system that supports concurrent execution of multiple threads, a method of allowing a program to perform a one-time synchronized initialization of a data item, the method comprising: (a) receiving a request to initialize the data item from a current thread; (b) determining whether the current thread is the first thread to attempt to initialize the data item; (c) if the current thread is the first thread to attempt to initialize the data item: (i) blocking attempts made by concurrent threads to execute program code that initializes the data item; and (ii) allowin
- Claim 2Depends on #1
The method as recited in claim 1 , further comprising retur
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.