Re: How to count the number of threads



In comp.os.linux.misc, on Tue 28 February 2006 10:46, s45_nospam@xxxxxxx
<sylvain.berthier@xxxxxxx> wrote:

Hi,

With a kernel 2.4 (red had AS3.0), how can I count the current number
of threads?

Start at 0 and increment by 1 for each thread

SBCNR
--
Robert HULL

Archival or publication of this article on any part of thisishull.net
is without consent and is in direct breach of the Data Protection Act
.



Relevant Pages

  • Re: race on multi-processor solaris
    ... > I think in my case, I don't want locks (just want to atomically ... Yes I'd agree that if all you want to do is perform atomic increment ... That's a kernel private header file, you are not able to use ... If you want low featured locking ...
    (comp.unix.solaris)
  • Re: network statistics in SMP
    ... The relative cost of the increment should be much less. ... Ideally all the statistics would be accessible per sysctl, ... sizes should be correct on the kernel - user interface. ... My current feeling after reading this thread is that the low-level kernel ...
    (freebsd-arch)
  • Re: 2.6.24-rc5-mm1
    ... which was a nice addition to increment the correct ... UDP MIB depending on the socket family, ... the use of this macro from kernel code (I mean code not compiled ... udp_stats_in6 seems to be defined in ipv6 (file ...
    (Linux-Kernel)
  • Re: 2.6.24-rc5-mm1
    ... the use of this macro from kernel code (I mean code not compiled ... Herbert, please take a look at this, thanks! ... Now that external users may increment the counters directly, ...
    (Linux-Kernel)
  • Re: From 2.4 to 2.6 to 2.7?
    ... 2: various things doesent break ... release to declare the Linux kernel "completely mature", ... even NVIDIA will hopefully be mature by then too, as might be Gallium3D, ... time until you hit a high number (it will increment by one every two years). ...
    (Linux-Kernel)