Archives / Vol. 1, No. 2 (July 2011)

Algebra of Synchronization with Application to Deadlock and Semaphores

International Journal of Networking and Computing, Vol. 1, No. 2, pp. 144–156, July 2011

Download PDF DOI: 10.15803/ijnc.1.2_144

Abstract

Modern multiprocessor architectures have exacerbated problems of coordinating access to shared data, in particular as regards to the possibility of deadlock. For example semaphores, one of the most basic synchronization primitives, present difficulties. Djikstra defined semaphores to solve the problem of mutual exclusion. Practical implementation of the concept has, however, produced semaphores that are prone to deadlock, even while the original definition is theoretically free of it. This is not simply due to bad programming, but we have lacked a theory that allows us to understand the problem. We introduce a formal definition and new general theory of synchronization. We illustrate its applicability by deriving basic deadlock properties, to show where the problem lies with semaphores and also to guide us in finding some simple modifications to semaphores that greatly ameliorate the problem. We suggest some future directions for deadlock resolution that also avoid resource starvation.

Keywords

synchronizationdeadlockalgebrasemaphore

How to Cite

Ernesto E. Gomez and Keith Schubert, "Algebra of Synchronization with Application to Deadlock and Semaphores," International Journal of Networking and Computing, vol. 1, no. 2, pp. 144–156, 2011. doi: 10.15803/ijnc.1.2_144

BibTeX
@article{ijnc.v01n02p03,
  author  = {Ernesto E. Gomez and Keith Schubert},
  title   = {Algebra of Synchronization with Application to Deadlock and Semaphores},
  journal = {International Journal of Networking and Computing},
  volume  = {1},
  number  = {2},
  pages   = {144--156},
  year    = {2011},
  doi     = {10.15803/ijnc.1.2_144},
  url     = {https://ijnc-journal.github.io/articles/v01n02p03/}
}