From owner-freebsd-arch@FreeBSD.ORG Fri Apr 16 22:13:25 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 587A216A4CE; Fri, 16 Apr 2004 22:13:22 -0700 (PDT) Received: from localhost (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i3H5DDgq033705; Sat, 17 Apr 2004 01:13:15 -0400 (EDT) (envelope-from green@green.homeunix.org) Message-Id: <200404170513.i3H5DDgq033705@green.homeunix.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Garrett Wollman In-Reply-To: Message from Garrett Wollman <200404170447.i3H4l6Hn021993@khavrinen.lcs.mit.edu> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 17 Apr 2004 01:13:13 -0400 Sender: green@green.homeunix.org cc: arch@freebsd.org Subject: Re: kqueue giant-locking (&kq_Giant, locking) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2004 05:13:25 -0000 Garrett Wollman wrote: > In article <200404170330.i3H3Ul0t032543@green.homeunix.org> you write: > > >I can't imagine a well-designed applications has kqueues of kqueues. > > I can in about five seconds' worth of thought. > > Suppose you have library X. It accomplishes some task asynchronously > (it doesn't matter what or how), and provides a descriptor that the > calling application must poll for completion. Now use that library > into an application that has its own event loop. > > This is one of the specific motivating examples behind doing kqueue > rather than simply extending poll() or select(). Please go and read > the papers before you continue down this path. Contrived. Let's see one. There won't be any -- they will be using threads, not kqueues, because threads work on more than one system. In case you didn't notice, kqueues have been horribly broken for years now, and if you go back and look at all the places I've pointed out so far you'll see how those behaviors are broken. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\