From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 16 18:22:51 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38E6E16A419 for ; Tue, 16 Oct 2007 18:22:51 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outL.internet-mail-service.net (outL.internet-mail-service.net [216.240.47.235]) by mx1.freebsd.org (Postfix) with ESMTP id 2379613C43E for ; Tue, 16 Oct 2007 18:22:51 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Tue, 16 Oct 2007 11:22:50 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 4436E1266E6; Tue, 16 Oct 2007 11:22:48 -0700 (PDT) Message-ID: <47150189.90403@elischer.org> Date: Tue, 16 Oct 2007 11:23:05 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Jason Evans References: <20071016094118.GE5411@hoeg.nl> <4714F8A2.5050406@freebsd.org> In-Reply-To: <4714F8A2.5050406@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers Subject: Re: Inner workings of turnstiles and sleepqueues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2007 18:22:51 -0000 Jason Evans wrote: > Ed Schouten wrote: >> 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 sleepqueues and turnstiles are relatively new. they may have come in since 5.2 (which is what the book was based on I think). >> opinion. > > You might take a look at _Solaris Internals_ by Mauro and McDougall. > > Jason > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"