processstateblocked

Process states - blocked state


I wonder if process could stay in blocked state even if there is not any other process that want to run. Theroticaly i guess the answer is yes ,but in practically it is not .. i'm right ?


Solution

  • Simple example: your process X is waiting for some IO to show on some socket indiscriminately.

    In other words: you make some sort of read() call without any kind of timeout. That process will just sit there, and do nothing. No matter what other processes in that system do.