Skip to content

Commit 5761805

Browse files
committed
re-wrap comment
1 parent a7d4610 commit 5761805

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cond-variables/queue-simulation.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* A queue simulation using two threads - a consumer and a producer.
33
*
44
* At every interval, the producer randomly inserts a message to the queue or
5-
* not, and at each step, the consumer randomly processes a message or not. One
6-
* condition variable and one mutex is used. Note that if we used semaphores,
7-
* we would need 2 of them to represent both "sleeping" states.
5+
* not, and at each step, the consumer randomly processes a message or not.
6+
* One condition variable and one mutex is used. Note that if we used
7+
* semaphores, we would need 2 of them to represent both "sleeping" states.
88
*
99
* On a full queue, insertion will put the producer to sleep, on an empty queue,
1010
* taking a message puts the consumer to sleep.

0 commit comments

Comments
 (0)