max number of threads/Win32 process
-
hi, Is there any limitation on maximum number of threads a win32 process can spawn..?? Thanks,
-
hi, Is there any limitation on maximum number of threads a win32 process can spawn..?? Thanks,
nope... no hard limit. But you are going to run out of memory. Default each thread has a 1MB stack... so go from there. Also performance vise is that too many threads running (and doing stuff) you will start to loose so much time in the thread switches that the system will grind to halt. Magnus
-
hi, Is there any limitation on maximum number of threads a win32 process can spawn..?? Thanks,
I don't think (so I'm not sure) there is a limitation to the number of thread an application can spawn. However, each thread need some resources to be maintained and there is a time sharing process which becomes inefficient if you have too many threads. In brief, having a huge amount a thread will decrease a lot the performances of your app. In general, having so many thread results from a bad design.