Inter-process communication and concurrency Flashcards
IPC
Processes often need to communicate to perform overall task, while maintaining system integrity.
Common Storage
Processes often work together by sharing common storage, however sometimes processes start using shared data before another process is finished with it; losing data/updates.
Critical Region/Section
Where processes access shared data. Mutual exclusion is needed in these sections
Mutual Exclusion by Disabling Interrupts
No interrupts = no clock interrupts and no other process can be scheduled giving exclusive access to CPU.
Mutual exclusion with busy waiting
Busy waiting = loop doing nothing in program code.
Set while loop condition to true when in critical region, then false when leaving critical region