Chapter 5 Process Synchro Flashcards

1
Q

What causes deadlock ?

A

when two or more processes are waiting indefinitely for an event that can be caused by only one of the waiting processes.

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

What are 3 main synchro problems ?

A

Bounded-buffer problem - producer consumer share common buffer

Reader-Writer problem - sharing resources where one process writes and one reads

Dining philosophers problem - using limited resources w/out causing deadlock

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

What is the critical section ?

A

Segment of code, which has common variables, updates, writes, etc, but only for one process. If one process in critical section, no other processes can enter critical section, until first one is done

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

What is mutula execution ?

A

only one process can go inside of critical section

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

What is bounded waiting ?

A

there exists a bound, or limit, on the number of times that other processes are allowed to enter their critical sections after a process has made a request to enter its critical section and before that request is granted.

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

What do mutex locks do ?

A

Lock critical sections

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