[cs631apue] Question about the semdemo.c

Jan Schaumann jschauma at stevens.edu
Sun Oct 30 13:20:48 EDT 2016

Jan Schaumann <jschauma at stevens.edu> wrote:
> As so often, code found on the internet is not guaranteed to be correct,
> and warrants some scrutiny.  (I really should make some time to rewrite
> this example to be less confusing.)

I've updated https://www.cs.stevens.edu/~jschauma/631/semdemo.c with a
few minor changes as well as some more explanatory comments.  I hope
this helps clarify the use of SysV semaphores

I also linked from the syllabus to another tutorial on semaphores in


More information about the cs631apue mailing list