Skip to content

Commit 29ad58b

Browse files
committed
adjust the comment
1 parent 5761805 commit 29ad58b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cond-variables/queue-simulation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* One condition variable and one mutex is used. Note that if we used
77
* semaphores, we would need 2 of them to represent both "sleeping" states.
88
*
9-
* On a full queue, insertion will put the producer to sleep, on an empty queue,
10-
* taking a message puts the consumer to sleep.
9+
* On a full queue, the producer will be put to sleep; on an empty queue,
10+
* consumer will be put to sleep.
1111
*
1212
* A randomness factor is used here to have the queue get some items in it and
1313
* also to hit both boundary cases (empty and full queue) from time to time.

0 commit comments

Comments
 (0)