Scalable Synchronization Primitives

Abstract

Over the past few years, processor design has undergone a significant transformation, newlineprimarily shifting from single-core to multi-core architectures. Multi-core processors newlineenable simultaneous task execution across multiple cores, promising substantial improvements newlinein system performance. Concurrent programming unlocks the efficiency of newlinemulti-core systems by dividing tasks and distributing them across available cores. Concurrent newlinethreads accessing shared resources have a risk of encountering data races that newlinelead to inconsistent behaviors. To manage these challenges, concurrent programming newlineemploys synchronization primitives such as locks, and barriers. Locks serve as fundamental newlinesynchronization primitive. When a thread acquires a lock on a shared resource, newlineit gains exclusive access, preventing other threads from modifying the data simultaneously. newlineThis approach protects data integrity and prevents data race. However, the newlineperformance of locks depends on processor architectures. Generally, computer architectures newlineare broadly divided into two types, namely, Uniform Memory Access (UMA) newlinearchitectures and Non-Uniform Memory Access (NUMA) architectures. In UMA architectures, newlineif data is available in the memory, then the access time is independent of newlineprocessor request. In NUMA architectures, the access times of processors vary with the newlineproximity of the data. In NUMA architectures, each processor accesses its local memory newlinein less time as compared with non-local memory. NUMA architectures present newlineunique challenges for achieving synchronization among the threads due to frequent remote newlinememory accesses during synchronization, which increase latency and cause load newlineimbalance as threads wait for data from remote nodes. To address the challenges associated newlinewith the underutilization of critical sections, which occurs when the critical section newlineregions are not accessed as frequently as system capacity allows, leading to suboptimal newlineresource usage. This may result from excessive lock contention, overly conservative

Description

Keywords

Citation

item.page.endorsement

item.page.review

item.page.supplemented

item.page.referenced