Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 97  3:01:17 +0000
From:      Andrew.Gordon@net-tel.co.uk
To:        rminnich@Sarnoff.COM
Cc:        freebsd-hackers@freebsd.org
Subject:   Re(2): Using rfork() / threads
Message-ID:  <"40b1-970131030103-8AD9*/G=Andrew/S=Gordon/O=NET-TEL Computer Systems Ltd/PRMD=NET-TEL/ADMD=Gold 400/C=GB/"@MHS>
In-Reply-To: <Pine.SUN.3.91.970130081328.9307F-100000@terra>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> VM space handling is a little different. If you request VM space sharing,
> you don't exactly get Vm address space sharing:  what you get is instead
> shared data areas where in normal fork they are copied. More details on 
> request. The effect is what you want, though: shared data areas. 

What synchronization primitives are you supposed to use between two
rfork()ed processes?  Using SysV sepmaphores seems a bit perverse
(and would they even work in the environment after a rfork() ?),
but talking through pairs of sockets to lock small datastructures
seems a bit heavyweight. 




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?"40b1-970131030103-8AD9*/G=Andrew/S=Gordon/O=NET-TEL Computer Systems Ltd/PRMD=NET-TEL/ADMD=Gold 400/C=GB/">