01Chapter 1: Why processes communicate: shared memory versus message passingThis chapter assumes you know what a process and a thread are, that a context switch saves one process's state so the CPU can run another, and that the CPU scheduler can preempt a running process. You should be able to read C-like pseudocode.2 min read
02Chapter 2: Peterson's algorithm for two processesThis chapter assumes you know that processes share memory or pass messages, that a race condition occurs when two processes update shared data at the same time, and that a CPU can be preempted in the middle of a program. Each section builds on the previous one.2 min read
03Chapter 3: Producer-consumer with a bounded bufferThis chapter assumes you know process and thread basics, how a context switch works, and how semaphores support wait (P) and signal (V). Each classic problem below tests one synchronisation idea that GATE questions often ask about.1 min read