Skip to main content

Practice · 1 of 1

Condition-Variable Handoff

CHALLENGE
Difficulty: advanced+25 XP

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.

Back to lesson: Practice: Coordination Primitives