Exam 01 Flashcards

1
Q

Four Conditions for a deadlock

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Deadlock?

A

When both processes are stuck forever

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is starvation?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly