skip to main content
article

Conflict resolution for readers and writers

Published:01 June 2001Publication History
Skip Abstract Section

Abstract

For those of us who have been teaching Operating Systems for years, you may remember with nostalgia the days when Operating Systems texts [ex: Deitel 1984] included Ada code to illustrate solutions for concurrency problems. I find concurrency the most difficult topic to teach in Operating Systems, and expressing solutions in Ada is a strong teaching aid. Ada's tasking construct is powerful and readable. In addition, an Ada Programming Support Environment enables hands-on experimentation.The Readers/Writers problem, a classic mutual exclusion synchronization problem, puzzled computer science professionals for years. Explaining these solutions, as presented in current Operating Systems texts, is daunting.We contrast code expressed in C to that proposed by Burns [Burns1985] and Barnes [Barnes1995] for readability. We then suggest a slight modification to obtain what we consider to be a preferred solution, one that illuminates concurrency issues in general.

References

  1. Barnes, J. Programming in Ada95, Addison-Wesley Publishing Co., Wokingham, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Burns, A., Concurrent Programming in Ada, Cambridge University Press, Cambridge, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Dijkstra, E. W., "Cooperating Sequential Processes," Technological University, Eindhoven, Netherlands, 1965. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Deitel, H. M., An Introduction to Operating Systems, Addison-Wesley Publishing Co., Reading, 1984.Google ScholarGoogle Scholar
  5. Hoare, C. A. R., "Monitors: An Operating System Structuring Concept," CACM, 17(10) October 1974, 549-57. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Levine, G. "The Control of Starvation," International Journal of General Systems, 15, 1989, 113-127.Google ScholarGoogle ScholarCross RefCross Ref
  7. Silberschatz, A. and Galvin, P. Operating System Concepts, 5th edition, Addison-Wesley, Reading, Mass. 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Stallings, W. Operating Systems, Prentice Hall, Upper Saddle River, NJ, 2001.Google ScholarGoogle Scholar

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 SIGAda Ada Letters
    ACM SIGAda Ada Letters  Volume XXI, Issue 2
    June 2001
    63 pages
    ISSN:1094-3641
    DOI:10.1145/568948
    Issue’s Table of Contents

    Copyright © 2001 Author

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 1 June 2001

    Check for updates

    Qualifiers

    • article
  • Article Metrics

    • Downloads (Last 12 months)1
    • Downloads (Last 6 weeks)0

    Other Metrics

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader