can an interrupt move a process to waiting state? Why a process moved to ready state on an interrupt? Does I/O from the same process move the process into waiting state?
can an interrupt move a process to waiting state?
Interrupt is when a process is stopped from performing its required job when it is in RUN state.
- The interrupt may be due to completion of time slice of the process. In this case process goes back to READY state and waits for its execution.
- The interrupt may be due to entry of some higher priority process in the READY state. In this case process goes back to READY state and waits for its execution.
- The interrupt can be from Input Output device. In this case process goes to WAIT state, waiting for I/O device for its completion. So yes, I/O from same process moves it to WAIT state.
Hope this helps. 