Deallocation of computer data in a multithreaded computer
Abstract
An apparatus, program product and method support the deallocation of a data structure in a multithreaded computer without requiring the use of computationally expensive semaphores or spin locks. Specifically, access to a data structure is governed by a shared pointer that, when a request is received to deallocate the data structure, is initially set to a value that indicates to any thread that later accesses the pointer that the data structure is not available. In addition, to address any thread that already holds a copy of the shared pointer, and thus is capable of accessing the data structure via the shared pointer after the initiation of the request, all such threads are monitored to determine whether any thread is still using the shared pointer by determining whether any thread is executing program code that is capable of using the shared pointer to access the data structure. Once this condition is met, it is ensured that no thread can potentially access the data structure via the shared pointer, and as such, the data structure may then be deallocated.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 45 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of deallocating a data structure accessible by a plurality of threads executing in a computer, comprising, in response to a request to deallocate the data structure: setting a shared pointer to the data structure to a predetermined value that indicates to a thread thereafter accessing the pointer that the data structure is not available; after setting the shared pointer to the predetermined value, waiting until each of the plurality of threads is no longer using the shared pointer by monitoring the program code executed by each thread to determine whether each thread is executing prog
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 2011072301 A1 | Systems and methods for recovering memory | — | 0 |
References Cited — Backward Prior Art (45)
Non-Patent Literature (4)
- U.S. Patent and Trademark Office, Notice of Allowance issued in related U.S. Appl. No. 10/400,702, dated Sep. 12, 2007.
- U.S. Patent and Trademark Office, Notice of Allowance issued in related U.S. Appl. No. 11/970,816, dated Oct. 20, 2011.
- U.S. Patent and Trademark Office, Office Action issued in related U.S. Appl. No. 10/400,702, dated Apr. 9, 2007.
- U.S. Patent and Trademark Office, Office Action issued in related U.S. Appl. No. 11/970,816, dated Apr. 14, 2011.