Is it tru that i can't create more than 64 threads per process and is there any way to increase this number?
Thanks for your help!
Printable View
Is it tru that i can't create more than 64 threads per process and is there any way to increase this number?
Thanks for your help!
where does 64 play into this??Quote:
Originally posted by olstar
Is it tru that i can't create more than 64 threads per process and is there any way to increase this number?
Thanks for your help!
MSDN states the limits such as under CreateThread(...) and you could always write a test program if you want to know.
Quote:
The number of threads a process can create is limited by the available virtual memory. By default, every thread has one megabyte of stack space. Therefore, you can create at most 2028 threads. If you reduce the default stack size, you can create more threads. However, your application will have better performance if you create one thread per processor and build queues of requests for which the application maintains the context information. A thread would process all requests in a queue before processing requests in the next queue.