Software transactional memory

被引:225
作者
Shavit, N
Touitou, D
机构
[1] School of Mathematical Sciences, Tel-Aviv University, Ramat Aviv
关键词
multiprocessor synchronization; lock-free; transactional memory; distributed shared memory;
D O I
10.1007/s004460050028
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
As we learn from the literature, flexibility in choosing synchronization operations greatly simplifies the task of designing highly concurrent programs. Unfortunately, existing hardware is inflexible and is at best on the level of a Lond-Linked/Store-Conditional operation on a single word. Building on the hardware based transactional synchronization methodology of Herlihy and Moss, we offer software transactional memory (STM), a novel software method for supporting flexible transactional programming of synchronization operations. STM is non-blocking, and can be implemented on existing machines using only a Load-Linked/Store-Conditional operation. We use STM to provide a general highly concurrent method for translating sequential object implementations to non-blocking ones based on implementing a k-word compare & swap STM-transaction. Empirical evidence collected on simulated multiprocessor architectures shows that our method always outperforms the non-blocking translation methods in the style of Barnes, and outperforms Herlihy's translation method for sufficiently large numbers of processors. The key to the efficiency of our software-transactional approach is that unlike Barnes style methods, it is not based on a costly ''recursive helping'' policy.
引用
收藏
页码:99 / 116
页数:18
相关论文
共 29 条
[1]  
AGARWAL A, 1991, P WORKSH SCAL SHAR M
[2]  
ALEMANY J, 1992, P 11 ACM S PRINC DIS, P15
[3]  
ANDERSON RJ, 1992, P 4 ACM S PAR ALG AR, P199
[4]  
Anderson T. E., 1990, IEEE Transactions on Parallel and Distributed Systems, V1, P6, DOI 10.1109/71.80120
[5]   COUNTING NETWORKS [J].
ASPNES, J ;
HERLIHY, M ;
SHAVIT, N .
JOURNAL OF THE ACM, 1994, 41 (05) :1020-1048
[6]  
Barnes G., 1993, P 5 ACM S PAR ALG AR
[7]  
BERSHAD BN, 1991, CMUCS91183 CARN MELL
[8]  
BREWER EA, 1989, MITLCSTR516
[9]  
BREWER EA, DELLAROCAS CN PROTEU
[10]  
CHAIKEN D, 1990, MITLCSTR489