[Gllug] Max number of pthreads in Linux ?

salsaman at xs4all.nl salsaman at xs4all.nl
Sat Mar 29 13:39:41 UTC 2008


On Sat, March 29, 2008 14:32, Progga wrote:
> On Sat, Mar 29, 2008 at 12:44:08PM +0000, Nix wrote:
>>
>> Threads strike me as one of those ideas that's really great where
>> necessary (e.g. when sharing is unavoidable, e.g. in kernel space) and
>> otherwise really silly.
>
> But don't they save memory space even on Unices?
>
> --
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>

I'm pretty sure they do - plus startup time is much quicker, shared memory
is done much easier, communication is simpler, locking can be done through
mutexes, etc.

However, in the case I was looking at for a potential client, I can so far
see no reason to use threads as opposed to a single process. I think the
client is under the impression that running with 10,000 threads will make
the program run 10,000 times faster...

Cheers,
Gabriel.
http://lives.sf.net




-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list