Os vocab Flashcards

1
Q

Deadlock

A

Two ore more programs waiting on each other.

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

Conditions for Deadlock

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
3
Q

Mutual Exclusion

A

Only one process may use a resource at a time

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

Hold-and-wait

A

A process may hold allocated resources while awaiting assignment of others.

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

No Preemption

A

No resource can be forcibly removed from a process holding it.

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

Circular Wait

A

A closed chain of processes exists, such that each process holds at least one resource needed by the next process in the chain.

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

Deadlock Prevention

A

Adopt a policy that eliminates one of the possible conditions for deadlock.

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

Deadlock Avoidance

A

Make the appropriate dynamic choices based on the current state of resource allocation.

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

Deadlock Detection

A

Attempt to detect the presence of a deadlock and take action to recover.

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

Indirect Deadlock Prevention

A

Prevent occurrence of one of the three necessary conditions for deadlock- Mutual Exclusion, Hold-and-wait, or No preemption.

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

Direct Deadlock Prevention

A

Prevent the occurrence of circular wait.

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

Deadlock Prevention Behavior

A

Conservative, under-commits resources.

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

Deadlock Prevention Strategies

A

Requesting all resources at once, Preemption, Resource ordering

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

Requesting all resources at once advantages

A

Works well for processes that perform a single burst of activity, no preemption necessary

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

Requesting all resources at once disadvantages

A

Inefficient: delays process initiation, future resource requirements must be known by process

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

Preemption advantages

A

Convenient when applied to resources whose state can be saved and restored easily.

17
Q

Preemption disadvantages

A

Preempts more often than necessary.

18
Q

Resource ordering advantages

A

Feasible to enforce with compile time checks, needs no runtime computation since problem is solved in system design

19
Q

Resource ordering disadvantages

A

Disallows incremental resource requests