Two threads, one needs to run at the highest possible frequency, but 90% of the time it has nothing to do, taking only a fraction of the tick. If it has nothing to do, I would like to suspend it until next tick, and let the second thread to use up the remaining time of the current tick.
When the next tick comes in, the first thread gets back to work…. repeating the cycles
This way, the higher priority task can run at the highest frequency
Thanks for any pointer!