On Tuesday 29 July 2003 22:57, Jonathan Cowherd wrote:
If you need to increase the maximum number of threads per user, you'll need to recompile the pthread library and decrease the amount of heap per thread.
Thanks, I missed this part. I thought that since suse has increased PTHREAD_THREADS_MAX it also decreased STACK_SIZE. Turns out to be wrong though...
It's better to re-architect your software around it or move to a different environment.
About redesigning the software, it's kinda difficult. I'm working on a simulation, it's built using another a simulation library (written in C) that utilizes thread. So it's the library that do all the thread-thing (yes, the library is GPL, but the purpose of using it is to avoid writing my application from scratch ;-). Later on, I need to do large simulation, which will generate lots lots of threads. -- -- Verdi March --