Date: Fri, 23 Jan 1998 09:25:43 -0300 From: daniel_sobral@voga.com.br To: luigi@labinfo.iet.unipi.it Cc: hackers@FreeBSD.ORG Subject: Re: uiomove() Message-ID: <83256595.0043B804.00@papagaio.voga.com.br>
next in thread | raw e-mail | index | archive | help
> I don't get your point about races. Once you are in the kernel you > cannot have preemption unless you get an interrupt. Yeah (well, kind of yeah), but... What about SMP? What about a process in one processor calling read() while a process in another processor calls write()? > If you want to avoid this, protect the critical section of code between Yup. The kind of interruption I may get is from timeout(9). But I can't do s = spl0(), because spl0() "returns" void. -- Daniel C. Sobral (8-DCS) Daniel_Sobral@voga.com.br Tagline: * FreeBSD. Earth.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?83256595.0043B804.00>