From owner-freebsd-threads@FreeBSD.ORG Tue Jul 15 10:48:47 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF2B937B401 for ; Tue, 15 Jul 2003 10:48:47 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id D031D43FBD for ; Tue, 15 Jul 2003 10:48:44 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h6FHmTLv037159; Tue, 15 Jul 2003 10:48:30 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h6FHmSC8037158; Tue, 15 Jul 2003 10:48:28 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Tue, 15 Jul 2003 10:48:28 -0700 From: David Schultz To: Terry Lambert Message-ID: <20030715174828.GA37077@HAL9000.homeunix.com> Mail-Followup-To: Terry Lambert , Nate Williams , freebsd-threads@FreeBSD.ORG, 'Kai Mosebach' , Chris Knight References: <007601c3467b$5f20e960$020aa8c0@aims.private> <004d01c348ae$583084f0$812a40c1@PETEX31> <16146.65087.69689.594109@emerger.yogotech.com> <3F13B1B4.8765B8F3@mindspring.com> <20030715082910.GA34696@HAL9000.homeunix.com> <3F13D2CC.68D9DEC9@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F13D2CC.68D9DEC9@mindspring.com> cc: Nate Williams cc: Chris Knight cc: 'Kai Mosebach' cc: freebsd-threads@FreeBSD.ORG Subject: Re: LinuxThreads replacement X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 17:48:48 -0000 On Tue, Jul 15, 2003, Terry Lambert wrote: > David Schultz wrote: > > On Tue, Jul 15, 2003, Terry Lambert wrote: > > > Yes, this is somewhat mitigated by the fact that it's easier to write > > > threads code than an FSA, such that a lesser coder is still able to > > > be productive. As a class, it's a tool I would lump in with things > > > like "perl". > > > > Actually, event-based programming is usually easier, since it does > > not require synchronization. A number of people, myself included, > > think that threads are overused, and often used incorrectly. But > > as Nate pointed out, threads are useful for many purposes, the > > most fundamental of which are SMP scalability and reduced latency. > > [graphics contexts in OpenGL] > [restartable system calls] > [thread contention scope in 1x1] > [interrupting close(2) with a signal] > [the Banker's Algorithm] > [races involving sockets] > [Mach activations] > [intention-mode locking] You have made some interesting points, but are you sure you're responding to the right thread? :-P Perhaps we need to adjust your contention scope...