Study this topic

Inter-Process Communication

Processes are isolated by design: each has its own address space, and one cannot read another's variables.

Short notes7 min read

Semaphores, Mutexes and Monitors

Peterson's algorithm and TestAndSet loops solve mutual exclusion, but they are awkward to use and they busy-wait. Operating systems offer higher-level tools instead.

Short notes9 min read

Classical Synchronization Problems

1) are the standard test bed for any new synchronization primitive. The bounded-buffer (producer-consumer) problem is about counting and waiting for space or data. The readers-writers problem is about letting many readers share while writers get exclusive access, and about who gets starved.

Short notes8 min read