AllenDowney / ThinkOS

Text and supporting code for Think OS: A Brief Introduction to Operating Systems, by Allen Downey.
554 stars 222 forks source link

Fix typo referring to for loop rather than while loop #30

Closed jmuia closed 5 years ago

jmuia commented 6 years ago

Section 10.4

numberMumbler commented 5 years ago

bump 😄

Question incorrectly states that cond_wait is "inside a for loop", but the code examples earlier in the section have it inside a while loop. (Which makes sense, because a for loop would stop checking after n failed attempts).

The code example, queue_cond.c, also uses a while loop (lines 64 & 76).

AllenDowney commented 5 years ago

Thanks!