diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-06-16 17:58:13 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-06-16 17:58:13 +0200 |
| commit | c88846a4fd58deda31be044b00c48aeee07ef033 (patch) | |
| tree | 9744dc9b749218c34d2e7b92805cdb45301ead87 | |
| parent | info: shared locks (diff) | |
| download | cmdipc-c88846a4fd58deda31be044b00c48aeee07ef033.tar.gz cmdipc-c88846a4fd58deda31be044b00c48aeee07ef033.tar.bz2 cmdipc-c88846a4fd58deda31be044b00c48aeee07ef033.tar.xz | |
info: barriers
Signed-off-by: Mattias Andrée <maandree@operamail.com>
| -rw-r--r-- | info/cmdipc.texinfo | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/info/cmdipc.texinfo b/info/cmdipc.texinfo index 675c845..5c2cb3a 100644 --- a/info/cmdipc.texinfo +++ b/info/cmdipc.texinfo @@ -186,6 +186,16 @@ is currently occupied and cannot be used without waiting for at most @code{SECONDS} seconds. +For a non primitive unit, the +time to live is reset when it enters +its next state. This could mean +that it could timeout anywhere +between the specifed time and +n times the specifed time when +n is the number of steps in the +action that can block, which with +the current units is at most 3. + @item -m @itemx --mode OCTAL Permission bits for the created @@ -453,6 +463,30 @@ waiting peers, and otherwise @option{wait}. @node Barriers @chapter Barriers +A barrier is a synchronisation primitive +that can be used to make sure the a number +of process continue their work at the same +time and do not fall out of sync with +eachother. A barrier blocks until a select +number of processes have reached it and the +lets all of those processes continue. It +does only have one verb: @option{enter}. + +A ``System V'' barrier is constructed from +two semaphores. A ``POSIX'' barrier is +constructed from three semaphores. This +difference is due to the lack of the +@code{Z} for POSIX semaphores. + +The key for a ``System V'' barrier is +a integer-duo delimited by a full stop. +The key for a ``POSIX'' barrier is a +juxtaposition of three an ASCII strings: +no NUL or slash, between 1 character and +254 characters long, and prefixed with a +slash. + + @node Shared Locks |
