Do some versions of Windows 7 (32 or 64 bits) manage the number of threads that any specific process are creating? If so, is there a way to configure a maximum limit of threads on system (in the registry for example)?

Is this a question for your own program? Or do you want to limit other programs on your system?
–
EBGreenJun 21 '11 at 20:23

I want to limit the thread number that my windows handle.
–
DiogoJun 21 '11 at 20:27

Nothing you can do about it then if you didn't write the program that is creating threads.
–
EBGreenJun 21 '11 at 20:28

And just to be clear, even if there were a way to limit it, you would most likely just break the program that is trying to make a new thread. If the program was properly coded it would handle the failure to create the thread, but at best it means that the program would not be able to do whatever it was creating the tread to do.
–
EBGreenJun 21 '11 at 20:31

1 Answer
1

The OS does not explicitly limit the creation of threads. It is essentially controlled by resource constraints. If the OS has the resources the the process can create as many threads as it wants until there are no more resources.