array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 111string(0) "" int(1) int(10) int(70) int(8640000) array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 进程的几种状态 - 爱码网

 图片来源于网络

进程的几种状态

 挂起:又称为阻塞;

如图所示,挂起的时候,是等待出CPU以外的其他资源主动放弃cpu,

其他资源指的是,read函数的阻塞,阻塞的时候是放弃了cpu,等待缓冲区内的数据。

进程的4中状态是保存在PCB结构体中的。

相关文章: