From owner-freebsd-hackers Sat Jan 31 11:50:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA25312 for hackers-outgoing; Sat, 31 Jan 1998 11:50:22 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA25302 for ; Sat, 31 Jan 1998 11:50:17 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id LAA20486; Sat, 31 Jan 1998 11:46:46 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd020483; Sat Jan 31 11:46:42 1998 Date: Sat, 31 Jan 1998 11:43:11 -0800 (PST) From: Julian Elischer To: Niall Smart cc: hackers@FreeBSD.ORG Subject: Re: Preemptive threads In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" If you've compiled with libc_r and the option THREAD_SAFE then you probably did get a non-blocking call to read.. a lot of that stuff is handled "under the covers". (just a guess) Julian On Sat, 31 Jan 1998, Niall Smart wrote: > Hi, > > Are the threads in 3.0-current supposed to be pre-emptive yet? I was > just playing around with a multithreaded TCP echo server and it cannot > accept more than one connection simultaneously. Also, the first call > to read on a socket returns EAGAIN even though its not non-blocking. > > > Regards, > > Niall >