当我尝试创建另一个线程(达到最大线程数后?)后会发生什么?
CreateThread
will fail when you run out of resources.
ERROR_NOT_ENOUGH_MEMORY
in a normal configuration and ERROR_NO_SYSTEM_RESOURCES
with small stack reserve.
See Pushing the Limits of Windows: Processes and Threads for more details.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.