I have a programs that works with threads. I want to know what is the maximum threads limit per process in windows 10 or what is the maximum threads windows 10 can handle?
Windows – Maximum threads limit per process in windows 10
threadswindowswindows 10
Best Answer
You'll hit other problems rather than any explicit cap. As explained by Raymond Chen, every thread requires some memory for bookkeeping, notably its stack (where the thread is in its execution of the program). 32-bit processes can only address 4 GB of memory, which will fit about 2,000 threads with the default 1 MB stack allocation per thread or about 12,000 with the smallest possible allocation of 64 KB per thread. 64-bit processes don't have problems with address space, but rather with the actual allocations. My system runs out of memory a little after
testlimit64 -t
passes 270,000 threads created.However, programs should not approach any such limit or need to worry about it. Quoting the previously linked post (with broken links fixed):