Hacker News new | past | comments | ask | show | jobs | submit login

Do drivers or other kernel code still have this kind of delay loop in current operating systems, or is everything interrupt-driven now?



I thought that was the point of BogoMips https://en.wikipedia.org/wiki/BogoMips


If they need to wait in atomic context, they probably do.

e.g. for linux: 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: