threaded processes

Dan Nelson dnelson at allantgroup.com
Tue May 18 07:39:39 PDT 2004


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 at allantgroup.com


More information about the freebsd-questions mailing list