On Thu, 14 Jan 1999, Jorge Nerin wrote:

> 
> And to the number of threads I say a program wich does two 
> pthread_create will end having a PID for the program itself, a PID 
> for the thread manager, and a PID for every thread, for a total of 
> four different PIDs.
> 

That is true... your original post seemed to imply a 2x overhead in
number of processes.  If you do 8 pthread_create() calls, no matter
who (which thread) does them, you will end up with the parent, the
8 new threads, and one for the 'thread manager' as you call it.  So
the overhead is always one extra thread for the task that gathers
results when threads terminate to take care of the 'join' operation
that may be done...


-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to