chapter 5 interprocess Flashcards
when correct execution depends on the timing of processes or threads running a critical section of code
Race condition
when a lower priority item is unfairly delayed by higher priority items arriving later (never have chance to get into CPU)
Starvation
a portion of a program that modifies a shared resources (where it will enter to do operation)
critical section
the conditions where two or more processes are not able to continue because they are waiting on each other to either release a resource or do something
Deadlock
Process executing concurrently in OS may be either ___________ or ____________ processes
independent or coorperating
what is independent process
- If it cannot affect or be affected by the other process executing in the
system - If it does not share data with any other process
what is cooperating process
If it can affect or be affected by the other processes executing in the
system
If it share data with any other process
Several reasons for providing an environment that allows process cooperation (why process cooperation)?
- information sharing
- computation speedup
- modularity
- convenience
cooperating process require __________ that will allow them to exchange _____ and ______
IPC (interprocess communication),
data and
information
Two fundamental model of interprocess communication
- shared memory: faster
- message passing: time-consuming
Other processes that wish to communicate using this ________must attach it to their _________
shared-memory segment,
address space
The producer process produces ________ that is ________ by a consumer process
information
consumed
what is unbounded buffer and bounded buffer?
unbounded buffer: not practical limit size on buffer
bounded buffer: there is a fixed size of buffer
what is Message Passing system?
Mechanism for processes to communicate and to synchronize their actions
IPC facility provides two operations
- send (message)
- receive (message)