9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* rendezvous
@ 1995-03-28 14:47 forsyth
  0 siblings, 0 replies; only message in thread
From: forsyth @ 1995-03-28 14:47 UTC (permalink / 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.






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-03-28 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-28 14:47 rendezvous forsyth

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).