Date: Tue, 5 Jun 2012 10:08:29 -0400 From: John Baldwin <jhb@freebsd.org> To: "Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?=" <des@des.no> Cc: Gianni <gianni@freebsd.org>, Alan Cox <alc@rice.edu>, Alexander Kabaev <kan@freebsd.org>, Attilio Rao <attilio@freebsd.org>, Konstantin Belousov <kib@freebsd.org>, freebsd-arch@freebsd.org, Konstantin Belousov <kostikbel@gmail.com> Subject: Re: Fwd: [RFC] Kernel shared variables Message-ID: <201206051008.29568.jhb@freebsd.org> In-Reply-To: <86y5o1vrer.fsf@ds4.des.no> References: <CACfq090r1tWhuDkxdSZ24fwafbVKU0yduu1yV2%2BoYo%2BwwT4ipA@mail.gmail.com> <201206041053.51802.jhb@freebsd.org> <86y5o1vrer.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, June 05, 2012 9:07:08 am Dag-Erling Sm=C3=B8rgrav wrote: > John Baldwin <jhb@freebsd.org> writes: > > I think this is an important question actually. Is there anything > > that really needs to be here besides gettimeofday()? I mean, is there > > any real-world application that needs to call getpid() or getppid() a > > bunch of times? >=20 > Yes, for fork detection when accessing resources shared between > descendants of the process that allocated them. So you call getpid() on each access to a shared resource? =2D-=20 John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206051008.29568.jhb>