Skip to main content

Part of the book series: Series in Computer Science ((SCS))

  • 243 Accesses

Summary

When each process in a group need two or more shared resource instances of a resource type, and every process holds a resource and waits to acquire a resource instance that another process holds, there is indefinite waiting for all processes in the group. This state is called deadlock because each process is waiting for an event that will never occur. The five philosophers problem is a classical synchronization problem that is used here to illustrate deadlock. The three general methods that operating systems use to handle deadlock are prevention, avoidance and detection.

Four different simulation models, which implement the five philosophers problem, were presented in this chapter to show in detail how and why deadlock occurs, and three possible solutions were discussed. Different values of performance measures were shown from the simulation runs.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Kluwer Academic Publishers

About this chapter

Cite this chapter

(2002). Deadlock. In: Performance Modeling of Operating Systems Using Object-Oriented Simulation. Series in Computer Science. Springer, Boston, MA. https://doi.org/10.1007/0-306-46976-6_8

Download citation

  • DOI: https://doi.org/10.1007/0-306-46976-6_8

  • Publisher Name: Springer, Boston, MA

  • Print ISBN: 978-0-306-46459-1

  • Online ISBN: 978-0-306-46976-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics