3 ms·
I still don’t really see the need to wake up every 4ms when all processes are suspended or killed. Just halt the CPU permanently until the next interrupt. 4ms
by randyrand 4y ago
I still don’t really see the need to wake up every 4ms when all processes are suspended or killed.
Just halt the CPU permanently until the next interrupt.
4ms interrupts are only needed when there are multiple active threads that need preempting.
- smcameron 4y agoI mean, a couple paragraphs down, the article says: > The solution here is to have a dynamic tick so that when the CPU is idle, the timer interrupt is either deactivated or reprogrammed to happen at a point where the kernel knows there will be work to do (for example, a process might have a timer expiring in 5 seconds, so we must not sleep past that). This is also called tickless mode.
- kevingadd 4y agoModern kernels are tickless like you describe.