From owner-freebsd-hackers Thu Jan 30 18:34:13 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA23852 for hackers-outgoing; Thu, 30 Jan 1997 18:34:13 -0800 (PST) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA23840 for ; Thu, 30 Jan 1997 18:34:10 -0800 (PST) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.8.3/CET-v2.1) with SMTP id CAA03194; Fri, 31 Jan 1997 02:33:22 GMT Date: Fri, 31 Jan 1997 11:33:22 +0900 (JST) From: Michael Hancock To: Martin Cracauer cc: rminnich@Sarnoff.COM, freebsd-hackers@FreeBSD.ORG Subject: Re: Using rfork() / threads In-Reply-To: <9701301753.AA23376@wavehh.hanse.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 30 Jan 1997, Martin Cracauer wrote: > rminnich@Sarnoff.COM (Ron G. Minnich) wrote: > > [rfork] > > >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. > > Could you explain a bit more. What exactly is the difference between > VM space sharing and shared data areas from the process' and the > kernel perspective? In fork the mappings are copied and the data is marked copied on write. In the original vfork you just inherited the mappings (Vm address space sharing). In rfork the mappings are copied but the data is not marked copy on write. I haven't analyzed rfork so someone might correct me but this makes sense to me. Regards, Mike