Snapshots and software transactional memory

被引:6
作者
Cole, C
Herlihy, M
机构
[1] Northrop Gumman Mission Syst, Middletown, RI 02842 USA
[2] Brown Univ, Dept Comp Sci, Providence, RI 02912 USA
关键词
synchronization; transactions; transactional memory;
D O I
10.1016/j.scico.2005.03.006
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
One way that software transactional memory implementations attempt to reduce synchronization conflicts among transactions is by supporting different kinds of access modes. One such implementation, Dynamic Software Transactional Memory (DSTM), supports three kinds of memory access: WRITE access, which allows an object to be observed and modified, READ access, which allows an object to be observed but not modified, and RELEASE access, which allows an object to be observed for a limited duration. In this paper, we examine the relative performance of these modes for simple benchmarks on a small-scale multiprocessor. We find that on this platform and for these benchmarks, the READ and RELEASE access benchmarks do not substantially increase transaction throughput (and sometimes reduce it). We blame the extra bookkeeping inherent in these access modes. In response, we propose a new SNAP access mode. This mode provides almost the same behaviour as RELEASE mode, but admits much more efficient implementations. (c) 2005 Elsevier B.V. All rights reserved.
引用
收藏
页码:310 / 324
页数:15
相关论文
共 15 条
[1]  
Afek Y., 1995, Proceedings of the Twenty-Seventh Annual ACM Symposium on the Theory of Computing, P538, DOI 10.1145/225058.225271
[2]  
ANDERSON JH, 1995, LNCS
[3]  
Fraser K, 2004, UCAM-CL-TR-579
[4]  
HARRIS T, 2003, P 18 ANN ACM SIGPLAN, P388, DOI DOI 10.1145/949305.949340
[5]  
Herlihy M., 2003, P 22 ANN S PRINC DIS, P92, DOI DOI 10.1145/872035.872048
[6]  
Herlihy M., 1993, P 20 ANN INT S COMP
[7]   LINEARIZABILITY - A CORRECTNESS CONDITION FOR CONCURRENT OBJECTS [J].
HERLIHY, MP ;
WING, JM .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1990, 12 (03) :463-492
[8]  
Israeli A., 1994, Proceedings of the Thirteenth Annual ACM Symposium on Principles of Distributed Computing, P151, DOI 10.1145/197917.198079
[9]  
JOHNSON T, 1990, P ACM SIGMETRICS C B, P106
[10]  
MARATHE VJ, 2004, 839 U ROCH DEP COMP