in reply to [Win32] pthreads and memory allocation
at which point it crashes. (Irrespective of how many threads I specify it always crashes when *all* threads have reached the stage of having to allocate the memory.)
Probably none of the started threads will get any time slice until your main thread enters the join wait state. Try adding a 1 second sleep inside the loop and it will probably crash as soom as the first one tries to run.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Win32] pthreads and memory allocation
by syphilis (Archbishop) on Nov 22, 2011 at 07:07 UTC | |
by BrowserUk (Patriarch) on Nov 22, 2011 at 07:17 UTC | |
by BrowserUk (Patriarch) on Nov 22, 2011 at 07:31 UTC | |
by syphilis (Archbishop) on Nov 22, 2011 at 08:38 UTC | |
by BrowserUk (Patriarch) on Nov 22, 2011 at 09:21 UTC |