CMD + K

Kapittel 9 · Tråder, locks og condition variablescondition variables

Producer–Consumer: When a Thread Needs to Wait

0:44Fortellerstemme
0:00 / 0:00

Producer–consumer with condition variables — a bounded buffer fills and drains; a producer that finds the buffer full waits on a condition; a consumer that finds it empty waits on the other; signal wakes one waiter

producer-consumercondition variablebounded bufferwait and signalmonitorthread synchronization