fix get_num_of_cpu on win32.
fix get_num_of_cpu on win32.
Merge pull request #5218 from Dhilan007/develop_crash

fix get_num_of_cpu on win32.