[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: pthreads



On Thu, Nov 23, 2000 at 01:04:05PM +0530, Sarcar, Shourya (MED) wrote:
> is there any way to count the number of threads belonging to the process,
> from one of the threads itself
> elab:
>     suppose P is a process who spawns threads T1..Tn. Can any thread , eg,
> T3 get an idea of n (the total threads spawned), using some syscall ?

I don't think pthread has any such interface. But you can build
a wrapper around pthreads if you wish to have that functionality.

Checkout enumerate() in the URL below:

http://www.python.org/doc/current/lib/module-threading.html

	-Arun