Subj : Re: pthread_create and memory To : comp.programming.threads From : David Hopwood Date : Sat Mar 12 2005 07:41 am David Schwartz wrote: > "Giorgio Spinazzola" wrote: > >>I done this simplex test:and work fine. >>The only problem is that after each new thread the memory of my process in >>increased of 10 MB !!! Why ?? > > Why do you care? That's *virtual* memory, which should not be a scarce > resource. Unless you have a 64-bit machine, virtual memory *is* a scarce resource. This is one of the things (only one) that prevents kernel threads from scaling beyond a few thousand per process on a 32-bit machine or OS. -- David Hopwood .