ATTR_TP_MAX_NUM_THREADS
Data Type: | integer |
Description: | This attribute specifies the maximum number of threads in the pool. You cannot reduce the maximum number of threads in the pool. NI recommends that you either use a fixed number of threads or make the maximum number of threads proportional to the number of processors. For example, the maximum number or threads in the default thread pool is 2 + (2 * (number of processors)). You can use the CmtGetNumProcessors function to determine the number of processors at run time. Pass UNLIMITED_THREAD_POOL_THREADS to indicate no limit on the maximum number of threads. In general, this is not recommended because too many threads in a process can result in poor program performance. |
LabWindows/CVI Compatibility: |
LabWindows/CVI 5.5 and later |