![]() Only after the process completes its sleep/waiting operation it will terminate. On the other hand, if the process is in UNINTERRUPTABLE_SLEEP state, then the issuing SIGKILL signal will not terminate immediately. ‘kill -9’) to the process, will terminate the process immediately. If the process is in INTERRUPTABLE_SLEEP state, then issuing SIGKILL signal (i.e. UNINTERRUPTABLE_SLEEP: When a process is in UNINTERRUPTABLE_SLEEP, it will not wake up from the middle of sleep even though new signals are sent to it. INTERRUPTABLE_SLEEP: When a process is in INTERRUPTABLE_SLEEP, it will wake up from the middle of sleep and process new signals sent to it. ![]() There are two types of SLEEPING processes: SLEEPING state indicates the process is currently waiting on certain resources (like waiting on I/O, waiting on locks, application code making the process to sleep,…). When the process is not waiting for any resource and ready to be executed by the CPU, it will be in the RUNNABLE state. When the CPU executes a process, it will be in a RUNNING state. Fig: Process State transition diagram RUNNING & RUNNABLE
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |