Compare and exchange operation using sleep-wakeup mechanism
Abstract
A method, apparatus, and system are provided for performing compare and exchange operations using a sleep-wakeup mechanism. According to one embodiment, an instruction at a processor is executed to help acquire a lock on behalf of the processor. If the lock is unavailable to be acquired by the processor, the instruction is put to sleep until an event has occurred.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 45 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method in a processor, comprising: decoding, with a decoder of the processor, a compare and exchange instruction to perform a compare and exchange operation for acquisition of a lock by the processor, the compare and exchange operation including an atomic compare and exchange operation; executing the compare and exchange instruction with an execution unit of the processor, which includes at least some hardware, to attempt to acquire the lock; and putting the compare and exchange instruction at the processor to sleep if the lock is unavailable as part of performing the compare and exchange in
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 (45)
Non-Patent Literature (5)
- "Improved Compare-And-Swap Instruction Using Change Bits for Computer Systems with Broadcast", IBM Technical Disclosure Bulletin, U.S.. IBM Corp., Mar. 1992. vol. 34., No. 10A., pp. 117-119.
- Anderson, Thomas E., "The Performance of Spin Lock Alternatives for Shared-Memory Multiprocessors", IEEE Transactions on Parallel and Distributed Systems, vol. 1, No. 1., (Jan. 1990), pp. 6-16.
- European Search Report, Application No. 05253896.4-1243; Intel Corporation, (Aug. 21, 2007), 3 pgs.
- Final Office Action received for U.S. Appl. No. 10/880,638, mailed on Dec. 11, 2008, 10 pages.
- Final Office Action received for U.S. Appl. No. 10/880,638, mailed on Dec. 8, 2011, 20 pages.