Skip to content

Commit cd92c18

Browse files
committed
another attempt to distinguish between System V and POSIX IPC mechanisms
1 parent a66d562 commit cd92c18

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

synchro.tex

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@
477477
return (0);
478478
}
479479
480-
$ ./a.out
480+
$ ./a.out
481481
^C
482482
\end{verbatim}
483483
\item \texttt{fcntl()} checks for deadlock and returns \texttt{EDEADLK}.
@@ -488,7 +488,7 @@
488488

489489
%%%%%
490490

491-
\pdfbookmark[1]{IPC}{sysvipc}
491+
\pdfbookmark[1]{IPC}{ipc}
492492

493493
\begin{slide}
494494
\sltitle{IPC}
@@ -509,12 +509,20 @@
509509
\begin{itemize}
510510
\item IPC resources continue to exist even after the process that created them
511511
is no longer around. To destroy them it is necessary to explicitly request this.
512-
From the shell the list of IPS resources can be acquired using
512+
\item There are two types of standard IPC interfaces: System~V and POSIX.
513+
In general System~V IPC has more complex albeit in some cases more capable API.
514+
For more information about System~V IPC mechanisms, see \texttt{svipc(7)} man
515+
page on any Linux distribution.
516+
\item POSIX IPC API is much simpler and better designed than the System~V IPC
517+
API. However, it is also much younger so you may see the System~V API used a
518+
lot in existing code. For System~V semaphore API and examples, see page
519+
\pageref{SYSVSEM}.
520+
\item The POSIX API for IPC came in with extension 1003.1b (aka POSIX.4), see
521+
page \pageref{POSIX4}.
522+
\item From the shell the list of System~V IPS resources can be acquired using
513523
the \texttt{ipcs} command. They can be deleted using the \texttt{ipcrm} command.
514524
The state and contents of existing IPS resources is unchanged even if no process
515525
works with them at the moment.
516-
\item For more information, see \texttt{svipc(7)} man page on any Linux
517-
distribution.
518526
\end{itemize}
519527

520528
%%%%%
@@ -679,12 +687,6 @@
679687
\end{slide}
680688

681689
\begin{itemize}
682-
\item POSIX IPC API is much simpler and better designed than the System~V IPC
683-
API. However, it is also much younger so you may see the System~V API used a
684-
lot in existing code. For System~V semaphore API and examples, see page
685-
\pageref{SYSVSEM}.
686-
\item The POSIX API for IPC came in with extension 1003.1b (aka POSIX.4), see
687-
page \pageref{POSIX4}.
688690
\item Sockets were accepted by other Unix systems as well and have been a part
689691
of the UNIX specification since version 2.
690692
\item There are other more system specific facilities. For example,

0 commit comments

Comments
 (0)