OSTEP Ch. 30 homework: correct and broken producer/consumer queues
Use controlled sleeps to force the interleavings that break a single-condition-variable queue and if-based waiting, then explain why the while-loop version survives.
Not attemptedOSTEP homeworkAccess: free
The exercise happens on OSTEP homework. Canonical link: https://github.com/remzi-arpacidusseau/ostep-homework/tree/master/threads-cv. Link check: not checked (5 Oct 2026). Opened from this app 0 times; opening is not counted as an attempt.
Check note: Not requested: the site's robots.txt disallows automated access to this path.
Supports: Condition-variable discipline for coding rounds and for real producer/consumer code.
Record an attempt
Attempt history
No attempts recorded yet.