4 ms·
Do drivers or other kernel code still have this kind of delay loop in current operating systems, or is everything interrupt-driven now?
by mwcampbell 6y ago
Do drivers or other kernel code still have this kind of delay loop in current operating systems, or is everything interrupt-driven now?
- garaetjjte 6y agoIf they need to wait in atomic context, they probably do. e.g. for linux: https://www.kernel.org/doc/Documentation/timers/timers-howto.txt https://www.kernel.org/doc/Documentation/timers/timers-howto... ATOMIC CONTEXT: You must use the delay family of functions. These functions use the jiffie estimation of clock speed and will busy wait for enough loop cycles to achieve the desired delay
- kalleboo 6y agoI thought that was the point of BogoMips https://en.wikipedia.org/wiki/BogoMips https://en.wikipedia.org/wiki/BogoMips