Portable way of setting std::thread priority in C++11
There’s no way to set thread priorities via the C++11 library. I don’t think this is going to change in C++14, and my crystal ball is too hazy to comment on versions after that. In POSIX, pthread_setschedparam(thread.native_handle(), policy, {priority}); In Win32 BOOL SetThreadPriority(HANDLE hThread,int nPriority)