What Is a Wait State?
Suspended (waiting, blocking) processes can be defined in the operating system as processes that are temporarily eliminated from memory. Machine resources are limited. In the case of insufficient resources, the operating system makes reasonable arrangements for programs in memory. Some of the processes are temporarily transferred out of the memory. When the conditions permit, they will be transferred back to the memory by the operating system and re-entered the waiting state for execution. [1]
- Chinese name
- Pending state
- Concept
- Processes that are temporarily out of memory
- Cause
- End user request
- Suspended (waiting, blocking) processes can be defined in the operating system as processes that are temporarily eliminated from memory. Machine resources are limited. In the case of insufficient resources, the operating system makes reasonable arrangements for programs in memory. Some of the processes are temporarily transferred out of the memory. When the conditions permit, they will be transferred back to the memory by the operating system and re-entered the waiting state for execution. [1]
Suspend state concept
- Suspended processes can be defined in the operating system as processes that are temporarily eliminated from memory. Machine resources are limited. In the case of insufficient resources, the operating system makes reasonable arrangements for programs in memory. Some of these processes are The memory is temporarily removed from the memory. When the conditions permit, the operating system will be recalled to the memory again and re-entered the waiting state to be executed, that is, the ready state. The system does not perform any action for a certain period of time. [1]
Suspend status reason
- (1) Requests from end users. When an end user finds a suspicious problem during the running of his program, he wants to suspend his program to stand still. That is, the executing process is suspended, and if the user process is in a ready state but not executed at this time, the process is temporarily unacceptable for the user to study its execution or modify the program. We call this quiescent state a "suspended state."
(2) The request of the parent process. Sometimes the parent process wants to suspend one of its own child processes in order to inspect and modify the child process, or coordinate activities among the child processes.
(3) The need for load regulation. When the real-time system has a heavy workload that may affect the control of real-time tasks, some unimportant processes can be suspended by the system to ensure the normal operation of the system.
(4) the needs of the operating system. The operating system sometimes wants to suspend certain processes in order to check running resource usage or for accounting purposes.
(5) The need for swap. In order to alleviate the memory tension, the blocked process in the memory is replaced with the external memory. [1]