chapter- 6, desin of unix operating system book (question-16)
Suppose a process attempts to go to sleep on event A but has not yet executed the code in the sleep algorithm to block interrupts; suppose an interrupt occurs before the process raises the processor execution level in sleep , and the interrupt handler attempts to awaken all processes asleep on event A.
- What will happen to the process attempting to go to sleep?
2.Is this a dangerous situation? If so, how can the kernel avoid it?
I cant able to find how kernel avoid.because the sleep algorithm in design unix operating system book .the algo block the intrrupt at the beginning.
Hariharan R is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.