I am writing a multi-threaded c++ application. When thread A has a very computationally expensive operation to perform, it slows down threads B, C, and D. How can I prevent this?
I am writing a multi-threaded c++ application. When thread A has a very computationally
Share
On windows you can use
Sleep(0)to release the remainder of your timeslice for other threads that are waiting.