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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights 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