Comment

Comment by yk

I would expect an infinite loop

    while(true) std::this_thread::yield(); 
to be designed to play nice with the scheduler, while I would assume a infinite loop

    while(true);
to not play nice with the scheduler. Now, I can't really imagine where this matters except for horrible hacky attempts at faking a real time scheduler on windows, but breaking horrible hacky attempts at faking a real time scheduler sounds like the kind of bug you hear about in the evening news.
parent yk 1 month ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton