Skip to content

Commit a29784e

Browse files
author
Vladimir Kotal
committed
more on POSIX semaphore creation
1 parent a865a03 commit a29784e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

synchro.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,11 @@
632632
\end{slide}
633633

634634
\begin{itemize}
635+
\item \emph{value} is the initial semaphore value
636+
\item Both the \emph{mode} and \emph{value} parameters are optional. This means
637+
that \emph{mode} has to be specified in order to set the initial value.
638+
\item Named semaphore might appear on a file system. Usually in the form of
639+
a node on virtual file system like \texttt{/dev/shm/} on Linux.
635640
\item \emph{\texttt{oflag}} can be a combination of only \texttt{O\_CREAT} and
636641
\texttt{O\_EXCL}. If the semaphore already exists, an invocation with only
637642
\texttt{O\_CREAT} silently succeeds, \texttt{O\_EXCL} will cause an error.

0 commit comments

Comments
 (0)