Futex based locks for C11's generic atomics - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Rapport (Rapport De Recherche) Année : 2015

Futex based locks for C11's generic atomics

Verrous basés sur futex pour les opérations atomiques génériques de C11

Résumé

We present a new algorithm and implementation of a lock primitive that is based on Linux' native lock interface, the futex system call. It allows us to assemble compiler support for atomic data structures that can not be handled through specific hardware instructions. Such a tool is needed for C11's atomics interface because here an _Atomic qualification can be attached to almost any data type. Our lock data structure for that purpose meets very specific criteria concerning its field of operation and its performance. By that we are able to outperform gcc's libatomic library by around 60%.
Fichier principal
Vignette du fichier
RR-8818.pdf (694.84 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01236734 , version 1 (02-12-2015)

Identifiants

  • HAL Id : hal-01236734 , version 1

Citer

Jens Gustedt. Futex based locks for C11's generic atomics. [Research Report] RR-8818, INRIA Nancy. 2015. ⟨hal-01236734⟩
674 Consultations
1264 Téléchargements

Partager

Gmail Facebook X LinkedIn More