Passer à la navigation principale Passer à la recherche Passer au contenu principal

Laws of order: Expensive synchronization in concurrent algorithms cannot be eliminated

  • Hagit Attiya
  • , Rachid Guerraoui
  • , Danny Hendler
  • , Petr Kuznetsov
  • , Maged M. Michael
  • , Martin Vechev
  • Technion - Israel Institute of Technology
  • ENAC-IIC-GEL
  • Ben Gurion University of the Negev
  • TU Berlin
  • IBM Watson Research Center

Résultats de recherche: Le chapitre dans un livre, un rapport, une anthologie ou une collectionContribution à une conférenceRevue par des pairs

Résumé

Building correct and efficient concurrent algorithms is known to be a difficult problem of fundamental importance. To achieve efficiency, designers try to remove unnecessary and costly synchronization. However, not only is this manual trial-and-error process ad-hoc, time consuming and error-prone, but it often leaves designers pondering the question of: is it inherently impossible to eliminate certain synchronization, or is it that I was unable to eliminate it on this attempt and I should keep trying? In this paper we respond to this question.We prove that it is impossible to build concurrent implementations of classic and ubiquitous specifications such as sets, queues, stacks, mutual exclusion and read-modify-write operations, that completely eliminate the use of expensive synchronization. We prove that one cannot avoid the use of either: i) read-afterwrite (RAW), where a write to shared variable A is followed by a read to a different shared variable B without a write to B in between, or ii) atomic write-after-read (AWAR), where an atomic operation reads and then writes to shared locations. Unfortunately, enforcing RAW or AWAR is expensive on all current mainstream processors. To enforce RAW, memory ordering-also called fence or barrier- instructions must be used. To enforce AWAR, atomic instructions such as compare-and-swap are required. However, these instructions are typically substantially slower than regular instructions. Although algorithm designers frequently struggle to avoid RAW and AWAR, their attempts are often futile. Our result characterizes the cases where avoiding RAW and AWAR is impossible. On the flip side, our result can be used to guide designers towards new algorithms where RAW and AWAR can be eliminated.

langue originaleAnglais
titrePOPL'11 - Proceedings of the 38th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages
Pages487-498
Nombre de pages12
Les DOIs
étatPublié - 1 déc. 2010
Modification externeOui
Evénement38th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL'11 - Austin, TX, États-Unis
Durée: 26 janv. 201128 janv. 2011

Série de publications

NomConference Record of the Annual ACM Symposium on Principles of Programming Languages
ISSN (imprimé)0730-8566

Une conférence

Une conférence38th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL'11
Pays/TerritoireÉtats-Unis
La villeAustin, TX
période26/01/1128/01/11

Empreinte digitale

Examiner les sujets de recherche de « Laws of order: Expensive synchronization in concurrent algorithms cannot be eliminated ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation