理解这部分内容之前,先要理解omp_get_num_threads()和omp_get_max_threads()的含义和区别,参考:http://blog.csdn.net/gengshenghong/article/details/7003110
(1)OMP_DYNAMIC环境变量:
取值为TRUE和FALSE,定义是否动态设定并行区域执行的线程,默认为false。
根据MSDN的说明:http://msdn.microsoft.com/zh-cn/subscriptions/y2s46ze1.aspx
If set to TRUE, the number of threads that are used for executing parallel regions may be adjusted by the runtime environment to best utilize system resources. If set to FALSE, dynamic adjustment