You are not logged in.
Pages: 1
Hi All,
Please tell me how many number of threads i can have in a Single process.
Now in My Application i have created 5 threads. I want to create more than 10 threads. is that possible?how much is the max or optimal?
instead of going for 10 Threads in a process if i split in to number of process, will it give a speed..Please Advise me as soon as possible.
Thanks in Advance
Lakshmi
Offline
borland tell users: max eficient number of threads is 16. :) I use 3 or 4 thread with no problem , but 2 always do nothing - wait on connection via accept.
I test some stuff and i work with 512 or up 2048 thread. It work nice for 3 GHZ pentium on socket server, becose lot of time thread wait via select and do nothing. But when you in all thread do heavy work, best is use max 2 threads.
you can change limit in linux by command uname specifi max. number of process. And set smaller stack size. Whe is stack szie 8 MB default on my redhat9, 1 GB RAM, i cant create more how ~250 threads. tuning stack to 512 kb, 10000 threads was created well.
Offline
Pages: 1