6

次のステートメントは、現在のスレッドのタイム スライスを放棄する同等の方法ですか?

std::this_thread::sleep_for(std::chrono::milliseconds(0));
std::this_thread::yield;
Sleep(0);  // On windows
4

2 に答える 2