From owner-freebsd-questions@FreeBSD.ORG Tue May 18 07:39:39 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0250B16A4CE for ; Tue, 18 May 2004 07:39:39 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AC1F43D4C for ; Tue, 18 May 2004 07:39:37 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i4IEdaPe018232; Tue, 18 May 2004 09:39:36 -0500 (CDT) (envelope-from dan) Date: Tue, 18 May 2004 09:39:36 -0500 From: Dan Nelson To: Kris Kennaway Message-ID: <20040518143935.GA4925@dan.emsphone.com> References: <20040518105609.GA50600@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040518105609.GA50600@xor.obsecurity.org> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: john doe cc: freebsd-questions@freebsd.org Subject: Re: threaded processes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2004 14:39:39 -0000 In the last episode (May 18), Kris Kennaway said: > On Tue, May 18, 2004 at 10:04:01AM +0000, john doe wrote: > > how can you view process threads on freebsd 4.9? There appears to > > be no option in ps,top or something in /usr/ports. > > Under 4.x threading is done in userland, so it is invisible to the > kernel. Under 5.x the default is to use kernel-supported threads, > which are visible to ps, top, et al. If you're really curious, the pstack command in ports will show all the threads in a process on 4.x (and 5.x if you use libc_r). -- Dan Nelson dnelson@allantgroup.com