in reply to Re: Use more threads.
in thread Use more threads.
Note also the stack_size use line option added to threads as a result of this thread.
I quite routinely set this as low as 4096 without problems, and doing so I have had a proof of concept code with 3000 threads running in 4GB of memory.
Not that there are many good uses for using more than 3 or 4 times as many threads as you have cores. So unless you are running your code on a system with 32 cores or more, seeking to run so many threads is usually a sign of naive coding.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Use more threads.
by password (Beadle) on Apr 29, 2013 at 07:23 UTC | |
by BrowserUk (Patriarch) on Apr 29, 2013 at 08:36 UTC | |
by password (Beadle) on Apr 30, 2013 at 00:26 UTC | |
by BrowserUk (Patriarch) on Apr 30, 2013 at 00:43 UTC | |
by password (Beadle) on Apr 30, 2013 at 11:00 UTC | |
|