From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 10 Sep 1997 18:11:59 +0100 From: forsyth@caldo.demon.co.uk forsyth@caldo.demon.co.uk Subject: [9fans] XaoS - first useable version Topicbox-Message-UUID: 62b41a26-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19970910171159.un8g8hc8BsVtgYluDUz-i86cJD0se4mQDGA_ptfarT4@z> when describing the process synchronisation primitives, i forgot to mention rendezvous(2), which is the system call to synchronise two processes. given rendezvous, , and rfork, you should be able to write the little you need fairly easily. processes can rendezvous to collect points without busy waiting on the spin lock. note that you should rfork(RFNAMEG) in main(), to ensure that you've got a separate space for the rendezvous values. (why RFNAMEG? because that rendezvous space is tied to the name space in Plan 9; in Brazil it becomes a separate resource controlled by a distinct flag to rfork.)