1 Oct 2002 01:12
threads
Albert D. Cahalan <acahalan <at> cs.uml.edu>
2002-09-30 23:12:04 GMT
2002-09-30 23:12:04 GMT
So a process calls fork() and the child calls fork() and
so on for a bit... and ps is to conclude that all those
processes are threads?
More seriously, you've introduced a gratuitous incompatibility
with AIX and Tru64. Compaq/HP documents -m and m as:
Prints all threads in a task,
if the task has more than one.
So you have the switch exactly backwards. There's a whole
world of UNIX-like systems out there. BSD fans already have
much to complain about, including "ps h" and many of top's
options.
Please back this out until a proper implementation is done.
(and yes, it will be done)
your ps
gets hit by OOM kill.
Besides, why bother? Changing glibc will change
nearly all threaded apps to use CLONE_THREAD.
Problem solved, not a buggy hack, and compatible
with the rest of the world.
RSS Feed