Date: Tue, 03 Oct 2000 14:01:02 -0600 From: Chuck Paterson <cp@bsdi.com> To: Alfred Perlstein <bright@wintelcom.net> Cc: John Baldwin <jhb@freebsd.org>, arch@freebsd.org, John Polstra <jdp@polstra.com>, Daniel Eischen <eischen@vigrid.com>, Matt Dillon <dillon@earth.backplane.com>, Greg Lehey <grog@lemis.com> Subject: Re: Mutexes and semaphores Message-ID: <200010032001.OAA12968@berserker.bsdi.com> In-Reply-To: Your message of "Tue, 03 Oct 2000 12:16:04 PDT." <20001003121604.H27736@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
concerning asmlinkage long sys_getppid(void) I would point out that the kernel could be pre-empted for an arbitrary long period of time and that by the time you look at the pointer it may no longer point at anything usefull, and could even fault. With the multi-threaded kernel this can happen just from interrupts, you don't even have to wander into the much less likely, but still possible, case of having a top half preempt. Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010032001.OAA12968>