Method of memory management in a multi-threaded environment and program storage device
Abstract
A method for managing a memory pool containing memory blocks between a producer thread and a consumer thread running in parallel within a process is disclosed. The method places free memory blocks in a first group in the memory pool and allocates on demand a memory block from the first group to the producer thread. The allocated memory block is shared between the producer thread and the consumer thread. Once the allocated memory block is no longer required, the consumer thread deallocates the allocated memory block by placing the deallocated memory block in a second group of the memory pool. Deallocated memory blocks in the second group are moved to a third group only when the third group is empty. Memory blocks in the third group are moved to the first group only when the third group is non-empty. A locking mechanism is not required in such a multi-threaded environment.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 27.
Claims (2 — 2 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for managing a memory pool containing memory blocks between a producer thread and a consumer thread running in parallel within a process, said method comprising: placing free memory blocks in a first group; allocating on memory block in a first group to the producer thread; sharing said allocated memory block between the producer thread and the consumer thread; deallocating said allocated memory block by the consumer thread by placing said deallocated memory block in a second group; moving at least one deallocated memory block from said second group to a third group by the consumer th
- Claim 2Independent Claim
A method
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 27 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (2)
- Inohara et al., "Using huge address spaces to construct cooperative systems," pp 85-92, IEEE, Apr. 1993.*
- Rezaei et al., "A new implementation technique for memory management," pp 332-339, IEEE, Apr. 2000.