Nonatomic Mutual Exclusion with Local Spinning ∗ ( Extended
نویسنده
چکیده
We present an N -process local-spin mutual exclusion algorithm, based on nonatomic reads and writes, in which each processperforms Θ(log N) remote memory references to enter and exit its critical section. This algorithm is derived from Yang andAnderson’s atomic tree-based local-spin algorithm in a way that preserves its time complexity. No atomic read/write algorithm with better asymptotic worst-case time complexity (under the remote-memory-references measure) is currently known. Thissuggests that atomic memory is not fundamentally required if one is interested in worst-case time complexity. The same cannot be said if one is interested in fast-path algorithms (in which contention-free time complexity is requiredto be O(1)) or adaptive algorithms (in which time complexity is required to be proportional to the number of contend-ing processes). We show that such algorithms fundamentally require memory accesses to be atomic. In particular, weshow that for any N -process nonatomic algorithm, there exists a single-process execution in which the lone competing pro-cess executes Ω(log N/ log log N) remote operations to enter its critical section. Moreover, these operations must access Ω(√logN/ log logN) distinct variables, which implies that fast and adaptive algorithms are impossible even if caching tech-niques are used to avoid accessing the processors-to-memory interconnection network. ∗Work supported by NSF grants CCR 9972211, CCR 9988327, and ITR 0082866.
منابع مشابه
Mutual Exclusion with O(log logn) Amortized Work
This paper presents a new algorithm for mutual exclusion in which each passage through the critical section costs amortized O(log log n) RMRs with high probability. The algorithm operates in a standard asynchronous, local spinning, sharedmemory model with an oblivious adversary. It guarantees that every process enters the critical section with high probability. The algorithm achieves its effici...
متن کاملThe Black-White Bakery Algorithm and Related Bounded-Space, Adaptive, Local-Spinning and FIFO Algorithms
A mutual exclusion algorithm is presented that has four desired properties: (1) it satisfies FIFO fairness, (2) it satisfies localspinning, (3) it is adaptive, and (4) it uses finite number of bounded size atomic registers. No previously published algorithm satisfies all these properties. In fact, it is the first algorithm (using only atomic registers) which satisfies both FIFO and local-spinni...
متن کاملTitle of Dissertation: Scalable Synchronization in Shared Memory Multiprocessing Systems Scalable Synchronization in Shared Memory Multiprocessing Systems
Title of Dissertation: Scalable Synchronization in Shared Memory Multiprocessing Systems Jae-Heon Yang, Doctor of Philosophy, 1994 Dissertation directed by: Assistant Professor James H. Anderson Department of Computer Science It is our thesis that scalable synchronization can be achieved with only minimal hardware support, speci cally read/write atomicity. This is contrary to the conventional v...
متن کاملTiming-Based Mutual Exclusion with Local Spinning
We consider the time complexity of shared-memory mutual exclusion algorithms based on reads, writes, and comparison primitives under the remotememory-reference (RMR) time measure. For asynchronous systems, a lower bound of Ω(log N/ log log N) RMRs per critical-section entry has been established in previous work, where N is the number of processes. In this paper, we show that lower RMR time comp...
متن کاملA New Extended Group Mutual Exclusion Algorithm with Low Message Complexity in Distributed Systems
The group mutual exclusion (GME) problem is an interesting generalization of the mutual exclusion problem. In the group mutual exclusion, multiple processes can enter a critical section simultaneously if they belong to the same group. In the extended group mutual exclusion, each process is a member of multiple groups at the same time. As a result, after the process by selecting a group enter cr...
متن کامل