by hkwerf · 1y ago · 0 comments
As mentioned, this is the first case and can be achieved by calls to sleep/Sleep/etc. You'd only regularly query if there is actual useful work to be done. That's the premise of the second case you quoted from.
Unless you do it in a separate thread and then signal other threads but that's insane.