How does one know how many thread a process owns?

Julian Elischer julian at elischer.org
Fri Apr 15 10:42:13 PDT 2005



Giorgos Keramidas wrote:

>On 2005-04-15 19:16, David Xu <davidxu at freebsd.org> wrote:
>  
>
>>
>
>I just checked what top does on SunOS, when a program has more than 999
>threads and it seems to clip the number of threads to 999, as if
>something min(999, numthreads) is what is printed :-)
>  
>

you could proint " !!!"  or "LOT"
or do a roman numeral approx.
  e.g.  MMC  (2100).. what's roman for 10000?
  or 2E4  :-)

>I'll change the width of THR to 4 columns if that's enough to fix the
>wrapping issue of COMMAND, or even to 3 if that is not enough.  Clipping
>the value of numthreads to something less than or equal to 999 is also a
>relatively good idea that shouldn't be too hard to implement.
>
>_______________________________________________
>freebsd-current at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-current
>To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>  
>


More information about the freebsd-current mailing list