Practice ยท 1 of 1
Condition-Variable Handoff
Implement a one-slot mailbox: put stores a value under the mutex and notifies; take waits (predicated) until a value is present, removes and returns it.
Difficulty: advanced
Press Submit to check your solution.
Back to lesson: Practice: Coordination Primitives