Re: How does one know how many thread a process owns?

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Sun, 17 Apr 2005 02:48:02 -0400 (EDT)
On Sat, 16 Apr 2005, Julian Elischer wrote:
> David Xu wrote:
>> Andre Guibert de Bruet wrote:
>>> On Fri, 15 Apr 2005, Julian Elischer wrote:
>>>> 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 realize that top isn't an exact science, but I find that approximations 
>>> are generally a bad idea. I am in favor of axing the useless CPU column 
>>> and reclaiming some useful screen space for the others... :)
>> 
>> CPU column is not very useful when displaying process and
>> thread count, if it is only useful if it is displaying individual
>> thread which is activated by 'H' key.
>
> CPU and thread count column could be shared
>
> [CPU]  )[1] [2] [3] ...[99]  could be CPUnum..
> that implies  1 thread
> 2..9999 is a thread count
>
> when H mode is on, then we just show [CPUNUM]
> wnen not we show [CPUNUM] or threadcount.

I would like to make sure that we're all talking about the same CPU column 
here. I was referering to the one that is immediately to the left of the 
COMMAND field (To the right of WCPU) and not the "C" column which displays 
the proc on which the thread/process is running on.

Andy

| Andre Guibert de Bruet | Enterprise Software Consultant >
| Silicon Landmark, LLC. | http://siliconlandmark.com/    >
Received on Sun Apr 17 2005 - 04:48:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:32 UTC