Chapter 5 Process Synchro Flashcards
What causes deadlock ?
when two or more processes are waiting indefinitely for an event that can be caused by only one of the waiting processes.
What are 3 main synchro problems ?
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
What is the critical section ?
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
What is mutula execution ?
only one process can go inside of critical section
What is bounded waiting ?
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.
What do mutex locks do ?
Lock critical sections