Pathological Interaction of Locks with Transactional Memory

Haris Volos, Neelam Goyal, Michael M. Swift

Minds at UW (University of Wisconsin) · 2008 · 37 citations · 19 references

Full text

Open access

Concepts

Abstract

Transactional memory (TM) promises to simplify multithreaded
\nprogramming. Transactions provide mutual exclusion without the
\npossibility of deadlock and the need to assign locks to data
\nstructures. To date, most investigations of transactional memory have
\nlooked at purely transactional systems that do not interact with
\nlegacy code using locks. Unfortunately, the reality of software
\nengineering is that such interaction is likely.
\n
\nWe investigate the interaction of transactional memory implementations
\nand lock-based code. We identify and discuss five pathologies that
\narise with different systems when a lock is accessed both within and
\noutside a transaction: Blocking, Deadlock, Livelock, Early Release,
\nand Invisible Locking. To address these pathologies we designed and
\nimplemented transaction-safe locks (TxLocks) by modifying the existing
\nlock implementation of the OpenSolaris C Library and extending the
\nconflict resolution policy of a hardware transactional memory system.

References

19