Process Management Flashcards

(8 cards)

0
Q

What is starvation

A

When a process never gets access the the resource it requires

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

What are deadlocks

A

A situation where two or more processes each are waiting for resources held by others

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

What are race conditions

A

2 or more processes competing for a shared resource

Result varies according to order of process execution

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

How do we avoid race conditions

A

Using critical sections

Both processes stop in critical sections (where shared resource is needed). And process the critical sections together

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

What is mutual exclusion

A

Only one process must be allowed to be in a critical section at one time

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

What is disabling interrupts

A

Disabling interrupts before a process enters its critical section

This guarantees that the process can use this shared resource

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

What is a disadvantage to disabling interrupts

A

The process may never enable interrupts therefore crashing the computer

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

What strict alternation

A

When an integer variable keeps track of whose turn it is to enter the critical region

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