skip to main content
article
Free Access

Dining philosophers revisited, again

Authors Info & Claims
Published:01 May 1991Publication History
Skip Abstract Section

Abstract

This paper describes a problem in the solution of the dining philosophers problem by Gingras [2] that makes it inefficient, instead of the claimed maximal efficiency. A correct implementation is presented. Even then, the solution has other undesirable characteristics and is still not maximally efficiency. Depending on the definition of efficiency, it may not be possible to attain maximal efficiency and be starvation-free at the same time. A better and simpler solution for general mutual exclusion problems, in which the dining philosophers problem is a special case, is presented. This solution can become symmetric if appropriate data structures are used.

References

  1. [1] Dijkstra, E.W. Cooperating Sequential Processes, in Programming Languages, Genuys, F. Ed., Academic Press, New York, 1968.Google ScholarGoogle Scholar
  2. [2] Gingras, A.R., Dining Philosophers Revisited. SIGCSE Bulletin, vol. 22 No. 3 (1990), 21-28. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. [3] Hoare, C.A.R. Communicating Sequential Processes, Prentice-Hall Inc., Englewood Cliffs, New Jersey, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. [4] Holt, R.C., Concurrent Euclid, The UNIX System, and TUNIS, Addison-Wesley, Reading, Massachusetts, 1983.Google ScholarGoogle Scholar
  5. [5] Page, I.P. & Jacob, R.T., The Solution of Mutual Exclusion Problems which can be Described Graphically, The Computer Journal, vol. 32 No. 1 (1989), 45-54. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. [6] Tanenbaum, A.S. Operating Systems: Design and Implementation, Prentice-Hall Inc., Englewood Cliffs, New Jersey, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Yue K. & Jacob R.T., Starvation-Free Semaphore Solutions to Mutual Exclusion Problems, Proceedings of the 1987 ACM Southern Central Regional ACM Conference, Lafayette, Louisiana (Nov. 1987), 127-141.Google ScholarGoogle Scholar
  8. Yue K., Semaphore Solutions for General Mutual Exclusion Problems, PhD dissertation, University of North Texas, Denton, Texas, 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Dining philosophers revisited, again

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM SIGCSE Bulletin
      ACM SIGCSE Bulletin  Volume 23, Issue 2
      June 1991
      68 pages
      ISSN:0097-8418
      DOI:10.1145/122106
      Issue’s Table of Contents

      Copyright © 1991 Author

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 1 May 1991

      Check for updates

      Qualifiers

      • article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader