Ch.7 Flashcards

(11 cards)

1
Q

Conditions for deadlocks to occur ( deadlock characterization)

A
  • mutual exclusion
  • hold and wait
  • no preemption
    Circular wait
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Methods for handling deadlocks we

A
  • ensure that the system will never enter a deadlock
  • allow the system to enter a deadlock state and then recover
  • ignore the problem and pretend that deadlocks never occur in the system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Deadlock detection

A
  • allow system to enter deadlock state
  • detection algorithm
  • recovery scheme
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Instances of a resource type

A

Available

Allocation

Request

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

Recovery a deadlock ways

A
  • abort all deadlock process
  • abort one process at a time until the deadlock circle is eliminated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to choose which process to abort

A
  • process priority
  • progress
  • resources used
  • res courses needed
  • impact on system
  • nature of the process
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Recovery from dead lock: resource preemption

A
  • selecting a victim
  • rollback

Starvation

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

Every process uses a resource in three steps

A

Request

Use

Release

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

Resource allocation graph

No cycles—> ???
Cycle exists—> ???

A

No deadlock

If only one instance per resource type—> dead lock

If several instances per resource type—> possibility of dead lock

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

If a system is in a safe state—>??

If a system is in an unsafe state—>??

Avoidance—>??

A

No deadlocks

Possibility of deadlocks

Ensure that a system will never renter an unsafe state

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

Single instance of a resource type use:—>??

Multiple instances per of a resource type use:—>??

A

Use a resource allocation graph

Use the bankers algorithm

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