IEEE Computer Architecture Letters · 2006 · 231 citations · 18 references
ComputingComputer EngineeringComputer ScienceCompilersOperating SystemsProgramming LanguagesConcurrency AnalysisConcurrency ControlConcurrent ProgrammingSpeculative ExecutionSynchronization PrimitivesAtomic Memory OperationsAtomicity ViolationsCritical SectionsHigh PerformanceLocksTransactional MemoryTransactional Memory Semantics
Transactional memory has great potential for simplifying multithreaded programming by allowing programmers to specify regions of the program that must appear to execute atomically. Transactional memory implementations then optimistically execute these transactions concurrently to obtain high performance. This work shows that the same atomic guarantees that give transactions their power also have unexpected and potentially serious negative effects on programs that were written assuming narrower scopes of atomicity. We make four contributions: (1) we show that a direct translation of lock-based critical sections into transactions can introduce deadlock into otherwise correct programs, (2) we introduce the terms strong atomicity and weak atomicity to describe the interaction of transactional and non-transactional code, (3) we show that code that is correct under weak atomicity can deadlock under strong atomicity, and (4) we demonstrate that sequentially composing transactional code can also introduce deadlocks. These observations invalidate the intuition that transactions are strictly safer than lock-based critical sections, that strong atomicity is strictly safer than weak atomicity, and that transactions are always composable
18
Maurice Herlihy, J. Eliot B. Moss · 1993 · 2.2K citations
Nir Shavit, Dan Touitou · 1995 · 1.2K citations · Full text
Shared memory consistency models: a tutorial
Sarita V. Adve, Kourosh Gharachorloo · Computer · 1996 · 1.1K citations
Composable memory transactions
Tim Harris, Simon Marlow, Simon Peyton-Jones et al. · 2005 · 716 citations
LogTM: Log-based Transactional Memory
K.E. Moore, Jayaram Bobba, Michelle J. Moravan et al. · 2006 · 685 citations