Is putting thread on hold optimal?

前端 未结 6 1139
礼貌的吻别
礼貌的吻别 2021-01-05 01:11

Application has an auxiliary thread. This thread is not meant to run all the time, but main process can call it very often.

So, my question is, what is more optimal

6条回答
  •  我在风中等你
    2021-01-05 01:25

    What do you mean by "suspend"? WaitForSingleObject will suspend the thread, i.e., it will not consume any CPU, until the signal arrives.

提交回复
热议问题