Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Basically, there are <strong>no limits</strong> at your C++ <strong>application level</strong>. The number of maximum thread is more on the <strong>OS level</strong> (based on your architecture and memory available).</p> <p><strong>On Linux</strong>, there are no limit on the maximum number of thread per process. The number of thread is limited system wide. You can check the number of maximum allowed threads by doing: </p> <pre><code>cat /proc/sys/kernel/threads-max </code></pre> <p><strong>On Windows</strong> you can use the <a href="http://download.sysinternals.com/files/TestLimit.zip" rel="noreferrer">testlimit</a> tool to check the maximum number of thread: <a href="http://blogs.technet.com/b/markrussinovich/archive/2009/07/08/3261309.aspx" rel="noreferrer">http://blogs.technet.com/b/markrussinovich/archive/2009/07/08/3261309.aspx</a> </p> <p><strong>On Mac OS</strong>, please read <a href="http://support.apple.com/kb/HT3854" rel="noreferrer">this table</a> to find the number of thread based on your hardware configuration</p> <p>However, please keep in mind that you are on a <strong>multitasking system</strong>. <strong>The number of threads executed at the same time is limited by the total number of processor cores available</strong>. To do more things, the system tries to switch between all theses thread. Each "switch" has a performce (a few milliseconds). If your system is "switching" too much, it won't speed too much time to "work" and your overall system will be slow.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload