Skip to content

Commit 8afc130

Browse files
committed
add another POSIX semaphore example and add reference
1 parent 3917f69 commit 8afc130

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

synchro.tex

+1
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,7 @@
666666
\item Example on POSIX semaphores (it is a fixed version of the previous example
667667
\example{race/race.c} from page \pageref{RACE_C}):
668668
\example{race/posix-sem-fixed-race.c}.
669+
\item Another example: \example{semaphores/talking-heads.c}
669670
\end{itemize}
670671

671672
%%%%%

threads.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -1424,8 +1424,8 @@
14241424

14251425
\begin{itemize}
14261426
\item Semaphores created using this API do not have a name (as opposed to
1427-
those created via the \texttt{sem\_open} function), hence they are called
1428-
unnamed.
1427+
those created via the \texttt{sem\_open} function,
1428+
see page \pageref{NAMED_SEMAPHORES}), hence they are called unnamed.
14291429
\item The semaphore functions adhere to the classical UNIX semantics --
14301430
they return -1 on error and set \texttt{errno}.
14311431
\item Example: \example{semaphores/sem.c}

0 commit comments

Comments
 (0)