【问题标题】:Trying to create more than the maximum possible number of threads in a Windows 32-Bit system尝试在 Windows 32 位系统中创建超过最大可能线程数
【发布时间】:2017-11-13 07:42:00
【问题描述】:

当我尝试创建另一个线程时会发生什么(达到最大线程数后?)

【问题讨论】:

  • 为了什么你需要创建这么多线程?
  • 我不知道!我正在为我的期末考试学习,我必须计算所描述系统上的最大线程数。

标签: windows multithreading operating-system


【解决方案1】:

CreateThread 将在您耗尽资源时失败。

ERROR_NOT_ENOUGH_MEMORY 处于正常配置中,ERROR_NO_SYSTEM_RESOURCES 具有小堆栈保留。

更多详情请见Pushing the Limits of Windows: Processes and Threads

【讨论】:

  • 完美!感谢您快速准确的回答!
猜你喜欢
  • 2012-02-04
  • 2015-08-11
  • 2011-08-20
  • 2012-05-09
  • 2016-08-30
  • 2016-01-14
  • 2012-02-17
  • 2011-06-23
  • 1970-01-01
相关资源
最近更新 更多