C Main Loop without 100% cpu

前端 未结 11 2319
半阙折子戏
半阙折子戏 2020-12-14 08:53
#include 

int main() {
  while(!DONE) {
    /* check for stuff */
  }
  return 0;
}

The above code sample uses 100% cpu until DONE

11条回答
提交回复
热议问题