From owner-freebsd-hackers Mon Apr 24 0:53:43 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 36D2337B67D for ; Mon, 24 Apr 2000 00:53:41 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain ([24.19.158.41]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000424075340.JWRN12856.mail.rdc1.sfba.home.com@beastie.localdomain>; Mon, 24 Apr 2000 00:53:40 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id BAA21633; Mon, 24 Apr 2000 01:03:15 -0700 (PDT) (envelope-from brian) Date: Mon, 24 Apr 2000 01:03:15 -0700 From: "Brian O'Shea" To: Jason Evans Cc: A G F Keahan , freebsd-hackers@FreeBSD.ORG Subject: Re: Multithreaded server performance Message-ID: <20000424010315.U337@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: Jason Evans , A G F Keahan , freebsd-hackers@FreeBSD.ORG References: <3903AEA6.FA7CBBAB@freenet.co.uk> <20000423212115.E31925@sturm.canonware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20000423212115.E31925@sturm.canonware.com>; from Jason Evans on Sun, Apr 23, 2000 at 09:21:15PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Apr 23, 2000 at 09:21:15PM -0700, Jason Evans wrote: > > FreeBSD's libc_r does not use clone() or anything similar. Instead, it is > a userland call conversion library that multiplexes threads in a single > process. This style of threads library should perform well for the type of > application you are dealing with. I was under the impression that, because user thread scheduling is done in user mode, a thread that goes to sleep calling a blocking read() system call will put the entire process to sleep until that read() returns (and so all user threads in the process will also be blocked). Is this correct? If it is, it sounds like a user thread implementation would be bad for Mr. Keahan's application, and something like the LinuxThreads port might be more appropriate. > > Note that there is also ports/devel/linuxthreads, which is based on > rfork(), which can be made to behave like Linux's clone(). > > Jason Please correct me if I am wrong. Thanks, -brian -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message