Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2004 09:39:36 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: threaded processes
Message-ID:  <20040518143935.GA4925@dan.emsphone.com>
In-Reply-To: <20040518105609.GA50600@xor.obsecurity.org>
References:  <BAY14-F40AgjHXwKHvy000578e0@hotmail.com> <20040518105609.GA50600@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040518143935.GA4925>