Title :
A Study of the Behavior of Synchronization Methods in Commonly Used Languages and Systems
Author :
Cederman, Daniel ; Chatterjee, Biswendu ; Nhan Nguyen ; Nikolakopoulos, Yiannis ; Papatriantafilou, Marina ; Tsigas, Philippas
Author_Institution :
Comput. Sci. & Eng., Chalmers Univ. of Technol., Gothenburg, Sweden
Abstract :
Synchronization is a central issue in concurrency and plays an important role in the behavior and performance of modern programmes. Programming languages and hardware designers are trying to provide synchronization constructs and primitives that can handle concurrency and synchronization issues efficiently. Programmers have to find a way to select the most appropriate constructs and primitives in order to gain the desired behavior and performance under concurrency. Several parameters and factors affect the choice, through complex interactions among (i) the language and the language constructs that it supports, (ii) the system architecture, (iii) possible run-time environments, virtual machine options and memory management support and (iv) applications. We present a systematic study of synchronization strategies, focusing on concurrent data structures. We have chosen concurrent data structures with different number of contention spots. We consider both coarse-grain and fine-grain locking strategies, as well as lock-free methods. We have investigated synchronization-aware implementations in C++, C# (.NET and Mono) and Java. Considering the machine architectures, we have studied the behavior of the implementations on both Intel´s Nehalem and AMD´s Bulldozer. The properties that we study are throughput and fairness under different workloads and multiprogramming execution environments. For NUMA architectures fairness is becoming as important as the typically considered throughput property. To the best of our knowledge this is the first systematic and comprehensive study of synchronization-aware implementations. This paper takes steps towards capturing a number of guiding principles and concerns for the selection of the programming environment and synchronization methods in connection to the application and the system characteristics.
Keywords :
C++ language; Java; concurrency control; data structures; memory architecture; programming environments; programming languages; storage management; synchronisation; virtual machines; AMD Bulldozer; C#; C++; Intel Nehalem; Java; NUMA architectures; coarse-grain locking strategy; commonly used languages and systems; concurrency issues; concurrent data structures; fine-grain locking strategy; hardware designers; language constructs; lock-free methods; machine architectures; memory management support; modern programmes; multiprogramming execution environments; performance under concurrency; possible run-time environments; programming environment; programming languages; synchronization constructs; synchronization issues; synchronization methods; synchronization strategy; synchronization-aware implementations; system architecture; virtual machine options; Data structures; Instruction sets; Java; Memory management; Programming; Synchronization; Throughput; fine-grained locking; lockfree; synchronization;
Conference_Titel :
Parallel & Distributed Processing (IPDPS), 2013 IEEE 27th International Symposium on
Conference_Location :
Boston, MA
Print_ISBN :
978-1-4673-6066-1
DOI :
10.1109/IPDPS.2013.91