ps (process status) vs ts (thread status)

Julian Elischer julian at elischer.org
Thu Sep 18 14:21:14 PDT 2003



EJHaug wrote:
Hi all,
In wandering through the DragonFly kernel
and looking at the ps and libkvm code.
It appears that Matt has made threads the
item of interest. On multiprocessors, there are
as many separate thread queues as processors.  

in FreeBSD 5.x ps -H shows threads

also "top" has an H option to toggle showing threads.

Is this observation going to remain true
as development proceeds?
If that is so, then a tool to report threads
would be more useful than the process status tool.
(the process status tool is incorrect in that processor 0 thread
activity is reported some time and processor 1 thread activity
is reported other times.)
The entries for processes appear to be correct
in both outputs.
eric






More information about the Kernel mailing list