From owner-freebsd-questions@FreeBSD.ORG Mon Oct 15 21:13:04 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 3FF7A16A417 for ; Mon, 15 Oct 2007 21:13:04 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id ED68213C44B for ; Mon, 15 Oct 2007 21:13:03 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id AE4831CC9F; Mon, 15 Oct 2007 23:13:01 +0200 (CEST) Date: Mon, 15 Oct 2007 23:13:01 +0200 From: Ed Schouten To: freebsd-questions@freebsd.org Message-ID: <20071015211301.GD5411@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OThxTnIjTxi+/jRk" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Subject: 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: Mon, 15 Oct 2007 21:13:04 -0000 --OThxTnIjTxi+/jRk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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, --=20 Ed Schouten WWW: http://g-rave.nl/ --OThxTnIjTxi+/jRk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHE9fd52SDGA2eCwURAmlnAJ9CJBHhstxbBXG2O0IEj21bBk4nvwCfRSD8 a28rygT2kaoSC6e4QSn9Rs4= =l/Gb -----END PGP SIGNATURE----- --OThxTnIjTxi+/jRk--