Exam 01 Flashcards
Four Conditions for a deadlock
Mutual exclusion – no two processes are in their critical
section at the same time - this ensures that two processes can’t
control the same resource at the same time
Hold and Wait – a process that holds a resource can request
more resources
No preemption – when a process holds a resource, it cannot
be taken away
Circular wait – each process is waiting to obtain a resource
that is currently being held by another resource
What is Deadlock?
When both processes are stuck forever
What is starvation?
Starvation is when a low priority processes are denied access to resources that are reserved for high priority processes. This is triggered by a deadlock.