From 33d09a6348d3a85fe452d739ecba596db3a0ec2d Mon Sep 17 00:00:00 2001 From: Han Xu Date: Sat, 18 Mar 2023 17:50:01 -0500 Subject: [PATCH] Fix synchronization.tex typo --- synchronization/synchronization.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synchronization/synchronization.tex b/synchronization/synchronization.tex index 2d8076d3..54941a63 100644 --- a/synchronization/synchronization.tex +++ b/synchronization/synchronization.tex @@ -1461,7 +1461,7 @@ \section{Barriers} Let's use a condition variable and then we will use a broadcast/signal functions to wake up the sleeping threads. A reminder, a condition variable is similar to a house! Threads go there to sleep (\keyword{pthread\_cond\_wait}). -A threa can choose to wake up one thread (\keyword{pthread\_cond\_signal}) or all of them (\keyword{pthread\_cond\_broadcast}). +A thread can choose to wake up one thread (\keyword{pthread\_cond\_signal}) or all of them (\keyword{pthread\_cond\_broadcast}). If there are no threads currently waiting then these two calls have no effect. A condition variable version is usually similar to a busy loop incorrect solution - as we will show next.