Questions

Efficient Alarm Clock FAQ

Are we allowed to manually disable and enable interrupts in timer sleep?

Yes. To be precise, interrupts must be on before and after the method call (“after” being before timer_sleep returns). It is not acceptable to turn off interrupts during timer_sleep and re-enable them at a later time after the function completes.


Back to top

hkaiser@cct.lsu.edu

The content of this page has been partially adapted from Berkeley's CS162 course documentation