9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: forsyth@plan9.cs.york.ac.uk forsyth@plan9.cs.york.ac.uk
Subject: rendezvous
Date: Tue, 28 Mar 1995 09:47:04 -0500	[thread overview]
Message-ID: <19950328144704.Wi33ZVP_iVk4EUccjxSzoQkNkv_bzM3PN8Ta_pyBqu4@z> (raw)

>>I started using the library function rendezvous(2) to do some basic process
>>synchronization. Since I have some problems with installing a common tag
>>for both processes (two processes a parent-process and a forked child) I
>>was wondering me, if anybody has a running short application, which is
>>using the rendezvous(2) function.

if you're writing in C, not (yet) Alef, there are several examples in
the system:

/sys/src/cmd/exportfs and /sys/src/cmd/iostats use rendezvous
simply, in similar ways, to implement shared-memory multiprocess file servers.

/sys/src/cmd/disk/kfs (see the libp subdirectory) uses machine-specific
functions and the portable rendezvous() to implement two levels
of synchronisation (spin locks and queue locks).

what problems did you have, more specifically?  the most significant
thing to watch with rendezvous is that the processes must share the same
name space (ie, don't use RFNAMEG/RFCNAMEG in rfork).  a plain fork()
leaves parent and child sharing the name space so that shouldn't be a problem
in itself.






                 reply	other threads:[~1995-03-28 14:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19950328144704.Wi33ZVP_iVk4EUccjxSzoQkNkv_bzM3PN8Ta_pyBqu4@z \
    --to=forsyth@plan9.cs.york.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).