rendezvous man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]


       rendezvous - user level process synchronization

       #include <u.h>
       #include <libc.h>

       void* rendezvous(void* tag, void* value)

       The  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 set of tag values which two processes may use  to  rendezvous—their
       tag  space—is  inherited	 when a process forks, unless RFREND is set in
       the argument to rfork; see fork(2).

       If a rendezvous is interrupted the return value is ~0,  so  that	 value
       should not be used in normal communication.


       fork(2), lock(2), segattach(2)

       Sets errstr.

                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net