Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions book/book.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4005,11 +4005,11 @@ \section{Condition variables}

A condition variable is a data structure associated with a condition;
it allows threads to block until the condition becomes true. For
example, \verb"thread_push" might want to check whether the queue is
example, \verb"queue_push" might want to check whether the queue is
full and, if so, block until it is not full. So the ``condition'' we
are interested in is ``queue not full''.

Similarly, \verb"thread_pop" might want to wait for a condition
Similarly, \verb"queue_pop" might want to wait for a condition
like ``queue not empty''.

Here's how we can add these capabilities to the queue code. First
Expand Down