Mutable locks: Combining the best of spin and sleep locks
- 17 June 2020
- journal article
- research article
- Published by Wiley in Concurrency and Computation: Practice and Experience
- Vol. 32 (22)
Abstract
Summary: In this article, we present mutable locks, a synchronization construct with the same semantic of traditional locks (such as spin locks or sleep locks), but with a self‐tuned optimized trade‐off between responsiveness and CPU‐time usage during threads' wait phases. Mutable locks tackle the need for efficient synchronization supports in the era of multicore machines, where the run‐time performance should be optimized while reducing resource usage. This goal should be achieved with no intervention by the programmers. Our proposal is intended for exploitation in generic concurrent applications, where scarce or no knowledge is available about the underlying software/hardware stack and the workload. This is an adverse scenario for static choices between spinning and sleeping, which is tackled by our mutable locks thanks to their hybrid waiting phase and self‐tuning capabilities.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- Decoupling contention management from schedulingACM SIGARCH Computer Architecture News, 2010
- Reactive synchronization algorithms for multiprocessorsACM SIGPLAN Notices, 1994
- Waiting algorithms for synchronization in large-scale multiprocessorsACM Transactions on Computer Systems, 1993
- Empirical studies of competitve spinning for a shared-memory multiprocessorACM SIGOPS Operating Systems Review, 1991
- Algorithms for scalable synchronization on shared-memory multiprocessorsACM Transactions on Computer Systems, 1991
- The performance of spin lock alternatives for shared-memory multiprocessorsIEEE Transactions on Parallel and Distributed Systems, 1990
- Efficient synchronization of multiprocessors with shared memoryACM Transactions on Programming Languages and Systems, 1988
- Congestion avoidance and controlACM SIGCOMM Computer Communication Review, 1988
- Dynamic decentralized cache schemes for mimd parallel processorsACM SIGARCH Computer Architecture News, 1984
- Solution of a problem in concurrent programming controlCommunications of the ACM, 1965