Thread limit?

Everything else that doesn't fall into one of the other PB categories.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Thread limit?

Post by Karbon »

After a little mishap a few minutes ago where I mistakenly tried to start 1000 threads I was wondering if Windows puts a hard limit on the number of threads one process can start? A few quick looks didn't turn up anything but it's just curiosity anyway.. It's not a big deal but if anyone knows, please drop me a line..

Thanks!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
RValois
User
User
Posts: 16
Joined: Fri Aug 15, 2003 6:31 am
Location: Brazil
Contact:

Post by RValois »

I searched for this information few days ago. This is what I found on plataform SDK CreateThread description:
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.
...
Post Reply