Is there ever a valid reason to call pthread_yield() when running under a modern/pre-emptive scheduler?

前端 未结 0 545
日久生厌
日久生厌 2020-12-21 04:08

pthread_yield is documented as "causes the calling thread to relinquish the CPU", but on a modern OS/scheduler, the relinquishing of the CPU happens automatically

相关标签:
回答
  • 消灭零回复
提交回复
热议问题