Tidex - A Mutual Exclusion Lock

被引:3
|
作者
Ramalhete, Pedro [1 ]
Correia, Andreia [2 ]
机构
[1] Cisco Syst, San Jose, CA 95134 USA
[2] Concurrency Freaks, Lausanne, Switzerland
关键词
mutual exclusion; ticket lock; locks;
D O I
10.1145/2851141.2851171
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Several basic mutual exclusion lock algorithms are known, with one of the simplest being the Ticket Lock. We present a new mutual exclusion lock with properties similar to the Ticket Lock but using atomic_exchange () instead of atomic_fetch_add () that can be more efficient on systems without a native instruction for atomic_fetch_add (), or in which the native instruction for atomic_exchange () is faster than the one for atomic_fetch_add (). Similarly to the Ticket Lock, our lock has small memory foot print, is extremely simple, respects FIFO order, and provides starvation freedom in architectures that implement atomic_exchange () as a single instruction, like x86.
引用
收藏
页码:407 / 408
页数:2
相关论文
共 50 条