Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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)?

share|improve this question
Is this a question for your own program? Or do you want to limit other programs on your system? –  EBGreen Jun 21 '11 at 20:23
I want to limit the thread number that my windows handle. –  Diogo Jun 21 '11 at 20:27
Nothing you can do about it then if you didn't write the program that is creating threads. –  EBGreen Jun 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. –  EBGreen Jun 21 '11 at 20:31

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.