Concurrent collection classes are widely used in multi-threaded programming, but they provide atomicity only for a fixed set of operations. Software transactional memory (STM) provides a convenient and powerful programming model for composing atomic operations, but concurrent collection algorithms that allow their operations to be composed using STM are significantly slower than their non-composable alternatives. We introduce transactional predication, a method for building transactional maps and sets on top of an underlying non-composable concurrent map. We factor the work of most collection operations into two parts: a portion that does not need atomicity or isolation, and a single transactional memory access. The result approximates semantic conflict detection using the STM's structural conflict detection mechanism. The separation also allows extra optimizations when the collection is used outside a transaction. We perform an experimental evaluation that shows that predication has better performance than existing transactional collection algorithms across a range of workloads.
机构:
Univ New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, AustraliaUniv New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, Australia
Younis, Adnan
Chu, Dewei
论文数: 0引用数: 0
h-index: 0
机构:
Univ New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, AustraliaUniv New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, Australia
Chu, Dewei
Li, Chang Ming
论文数: 0引用数: 0
h-index: 0
机构:
Southwest Univ, ICEAM, Chongqing 400715, Peoples R ChinaUniv New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, Australia
Li, Chang Ming
Das, Theerthankar
论文数: 0引用数: 0
h-index: 0
机构:
Univ New S Wales, Sch Biotechnol & Biomol Sci, Ctr Marine Bioinnovat, Sydney, NSW 2052, AustraliaUniv New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, Australia
Das, Theerthankar
Sehar, Shama
论文数: 0引用数: 0
h-index: 0
机构:
Univ New S Wales, Sch Biotechnol & Biomol Sci, Ctr Marine Bioinnovat, Sydney, NSW 2052, AustraliaUniv New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, Australia
Sehar, Shama
Manefield, Mike
论文数: 0引用数: 0
h-index: 0
机构:
Univ New S Wales, Sch Biotechnol & Biomol Sci, Ctr Marine Bioinnovat, Sydney, NSW 2052, AustraliaUniv New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, Australia
Manefield, Mike
Li, Sean
论文数: 0引用数: 0
h-index: 0
机构:
Univ New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, Australia
Southwest Univ, ICEAM, Chongqing 400715, Peoples R ChinaUniv New S Wales, Sch Mat Sci & Engn, Sydney, NSW 2052, Australia