CMD + K

0:45Fortellerstemme
0:00 / 0:00

Semaphores — a single integer plus a queue: P() decrements and blocks if the value would go negative, V() increments and wakes a waiter; a semaphore with initial value 1 acts as a lock

semaphoreP and Vmutexcounting semaphorewait queuemutual exclusion