From owner-freebsd-questions@FreeBSD.ORG Tue Oct 16 09:07:17 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 857BE16A41A for ; Tue, 16 Oct 2007 09:07:17 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx1.freebsd.org (Postfix) with ESMTP id EFFA713C45A; Tue, 16 Oct 2007 09:07:16 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <47147F43.2030703@FreeBSD.org> Date: Tue, 16 Oct 2007 11:07:15 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Ed Schouten References: <20071015211301.GD5411@hoeg.nl> In-Reply-To: <20071015211301.GD5411@hoeg.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Inner workings of turnstiles and sleepqueues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2007 09:07:17 -0000 Ed Schouten wrote: > Hello, > > For some reason, I want to understand how the queueing of blocked > threads in the kernel works when waiting for a lock, which is if I > understand correctly done by the turnstiles and sleepqueues. I'm the > proud owner of The Design and Implementation of the FreeBSD Operating > System book, but for some reason, I can't find anything about it in the > book. > > Is there a way to obtain information about how they work? I already read > the source somewhat, but that shouldn't be an ideal solution, in my > opinion. > > Yours, I think this is a question to ask on hackers@ Kris