Date: Mon, 31 Jul 2000 14:33:35 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Chris Costello <chris@calldei.com> Cc: Bjorn Tornqvist <bjorn@tornqvist.net>, Nate Williams <nate@yogotech.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: BSD,Posix,Linux Threading - Are they really useable? Message-ID: <20000731143335.A12633@dan.emsphone.com> In-Reply-To: <20000731140304.Y37935@holly.calldei.com>; from "Chris Costello" on Mon Jul 31 14:03:04 GMT 2000 References: <398111DA.443B41F9@tornqvist.net> <20000728003913.K37935@holly.calldei.com> <200007281538.JAA22915@nomad.yogotech.com> <20000728140854.L37935@holly.calldei.com> <398534AF.467DE4D5@tornqvist.net> <20000731140304.Y37935@holly.calldei.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 31), Chris Costello said: > On Monday, July 31, 2000, Bjorn Tornqvist wrote: > > But how do I know if my pthreads aren't secretely blocking for a > > very short time in read() and write()? Documentation anywere? > > They 'block' for the duration of time it takes to make a > non-blocking call to read() or write(), which is, as far as your > program cares, practically zero. It could take quite a long time, actually, if you are doing random I/Os and your disk is heavily loaded. Plain files can't be set non-blocking, so the process has to wait for the disk to seek and return the requested data. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000731143335.A12633>