From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 2 02:13:15 2012 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 C3FCE106564A for ; Thu, 2 Aug 2012 02:13:15 +0000 (UTC) (envelope-from dr2867@pacbell.net) Received: from nm7.access.bullet.mail.sp2.yahoo.com (nm7.access.bullet.mail.sp2.yahoo.com [98.139.44.134]) by mx1.freebsd.org (Postfix) with SMTP id 937E98FC08 for ; Thu, 2 Aug 2012 02:13:15 +0000 (UTC) Received: from [98.139.44.100] by nm7.access.bullet.mail.sp2.yahoo.com with NNFMP; 02 Aug 2012 02:13:09 -0000 Received: from [98.139.44.85] by tm5.access.bullet.mail.sp2.yahoo.com with NNFMP; 02 Aug 2012 02:13:09 -0000 Received: from [127.0.0.1] by omp1022.access.mail.sp2.yahoo.com with NNFMP; 02 Aug 2012 02:13:09 -0000 X-Yahoo-Newman-Id: 878861.29428.bm@omp1022.access.mail.sp2.yahoo.com Received: (qmail 3643 invoked from network); 2 Aug 2012 02:13:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=pacbell.net; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=W/4AVMuyNTgr0yewA4ws6IKrgmR1xDByhB0GeJMz6wH7GDWJhbEfc+eJ5RwxqvfcC8aeQBdvUGG9IRsleM1O1eJPjDJ9mGfTtr2bYE9UiEaCn3nXt09ACfggZqAdcGr+shWlbogeQzvQB/8xwISmrHB5uHUs1G8nlQAFVKvuUlg= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacbell.net; s=s1024; t=1343873589; bh=Bb/Qad3w8c1RMJnFObFcpbupRDKVg8p+PeHS0HFKIA0=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=nVuUe1tHkdfYYlQ//dnQsCGxie3adr4OOL/teBxNQEQtw48GCHzmrbugwRO5gjk2sQVBVjUcCQhkRa6DDJpKv6Mb87bwjTQqL3YanoUy+JoK489a8FddeNhD+UJt/AinHgJzYcNUr7z0thU04Gn36XUF7cfn2QmlXd2K0jse/EQ= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: buo_F5YVM1nBnK0P8ZE5Gsp3L6GE8d5CpZBNRbJJsrA_20r l0jETVcclyOxuMRDxzaZf9W1n9ahr4awhpRsD183Pvo6kgz7.SzQadQ2bpbm pst6dD8Id18OPzZZJ2_j_2o2NjJAAYj_9e3.QSM8norqrCIYT60gR0OvSrHN w_G_Q5AlqNQIjGPEPFtnSbRCBv2rAS2eaPwfYyxBkMIXvju2Ow.QsAx0Q2ov KNLObO8.bMcA0g5Cyh9Tl7OjBiPMuPcbhtSxtN_FKUipAWb7xoWHi0Zm9Q__ zCsuA9jd5Dsl7lzipH26N_DKqfUQH1OKS0DVz.D.d0siZFoYEXizHstf0qOJ 5UrizMWIpEnrFzdGhTVl__vVVLg.n3Dz1EnGhg_qKTEeI0Uy6HKgjtcEZjL4 eam8DQxbKC4ugS5JXlTimVHl5RqdYd6tGx48YYC3k7u1qxUyo1gCCtcMwrA- - X-Yahoo-SMTP: buatFJCswBBKMen3cE6LLkyZyMucfar_EwzGZnarmQ-- Received: from [192.168.0.98] (dr2867@99.20.134.213 with plain) by smtp102.sbc.mail.gq1.yahoo.com with SMTP; 01 Aug 2012 19:13:09 -0700 PDT Message-ID: <5019E209.50109@pacbell.net> Date: Wed, 01 Aug 2012 19:12:25 -0700 From: Daniel Rudy User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120715 Firefox/14.0.1 SeaMonkey/2.11 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Enumerating sleeping threads 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: Thu, 02 Aug 2012 02:13:15 -0000 Hello, What is the best way to enumerate the sleeping threads via sleepqueue(9)? Furthermore, when enumerating the threads that are on the run queue, what locks are needed, if any? Thank you. -- Daniel Rudy