【理论】进程线程小记录([theory] process thread small record)

1、什么是挂起?

挂起进程在操作系统中可以定义为暂时被淘汰出内存的进程,机器的资源是有限的,在资源不足的情况下,操作系统对在内存中的程序进行合理的安排,其中有的进程被暂时调离出内存,当条件允许的时候,会被操作系统再次调回内存,重新进入等待被执行的状态即就绪态,系统在超过一定的时间没有任何动作。

————————

1. What is suspend?

In the operating system, a suspended process can be defined as a process that is temporarily eliminated from the memory. The resources of the machine are limited. When the resources are insufficient, the operating system makes reasonable arrangements for the programs in the memory. Some processes are temporarily transferred out of the memory. When conditions permit, they will be transferred back to the memory by the operating system and re-enter the state waiting to be executed, that is, the ready state, The system has no action for more than a certain time.