Does WaitForSingleObject give up a thread's time slice?

后端 未结 2 1569
野的像风
野的像风 2020-12-19 11:49

I\'m making a win32 program in C.

When you have multiple threads running, and one of the threads is waiting for an event (using WaitForSingleObject() fo

2条回答
  •  天命终不由人
    2020-12-19 12:02

    If the object you're waiting on is not already signalled, the thread will yield the rest of its timeslice and go to sleep until the object is signalled.

提交回复
热议问题