Query: rendezvous
OS: plan9
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RENDEZVOUS(2) System Calls Manual RENDEZVOUS(2)NAMErendezvous - user level process synchronizationSYNOPSIS#include <u.h> #include <libc.h> ulong rendezvous(ulong tag, ulong value)DESCRIPTIONThe rendezvous system call allows two processes to synchronize and exchange a value. In conjunction with the shared memory system calls (see segattach(2) and fork(2)), it enables parallel programs to control their scheduling. Two processes wishing to synchronize call rendezvous with a common tag, typically an address in memory they share. One process will arrive at the rendezvous first; it suspends execution until a second arrives. When a second process meets the rendezvous the value arguments are exchanged between the processes and returned as the result of the respective rendezvous system calls. Both processes are awakened when the rendezvous succeeds. The tag space is common to processes in the same file name space, so rendezvous only works between processes in the same file name space. If a rendezvous is interrupted the return value is ~0, so that value should not be used in normal communication.SOURCE/sys/src/libc/9syscallSEE ALSOsegattach(2), fork(2)DIAGNOSTICSSets errstr.BUGSThe correlation of rendezvous tags and file name space is a historical accident. If two unrelated processes happen to be in the same name space and do a rendezvous, trouble will result. The solution is to call rfork(RFNAMEG) (see fork(2)) in programs that use rendezvous unless they need to share the name space with their parent. This is especially important in Alef programs. RENDEZVOUS(2)
Related Man Pages |
---|
ntalkd(8) - centos |
ntalkd(8) - mojave |
ntalkd(8) - netbsd |
talkd(8) - netbsd |
in.talkd(8) - centos |
Similar Topics in the Unix Linux Community |
---|
cannot fork process on IBM - AIX |
forking and killing parent processes |
need a way to synchronize processes |
processes and shared memory |
fork processes |