operating system - Can a process terminate after I/O without returning to the CPU? -
i have question following diagram operating systems concepts: http://unboltingbinary.in/wp-content/uploads/2015/04/image028.jpg
this diagram seems imply after every i/o operation, process placed on ready queue before being sent cpu again. however, possible process terminate after i/o before being sent ready queue?
suppose have program computes number , writes storage. in case, process need return cpu after i/o operation? seems me process should allowed terminate right after i/o. way, there no need context switch.
once 1 process has executed termination request on another, threads of terminated process should never run again, no matter state in - blocked on i/o, blocked on inter-thread comms, running on core, sleeping, whatever - must stopped if running , put in state never run again.
anything else security issue - terminated threads should not given execution @ all, (else may not possible terminate process).
Comments
Post a Comment