一个进程可由两个线程组成,若其中一个线程被调度程序选中后进入运行态,占用处理机资源,其他的线程位于就绪队列,则此时该进程的状态是( )
2023-09-01
A. 运行状态
B. 就绪状态
C. 挂起状态
D. 阻塞状态
参考答案:A
B. 就绪状态
C. 挂起状态
D. 阻塞状态
参考答案:A
运行中的进程可以具有以下三种基本状态。1)就绪状态(Ready):进程已获得除处理器外的所需资源,等待分配处理器资源;只要分配了处理器进程就可执行。2)运行状态(Running):进程占用处理器资源;处于此状态的进程的数目小于等于处理器的数目。3)阻塞状态(Blocked):由于进程等待某种条件(如I/O操作或进程同步),在条件满足之前无法继续执行。题目中该进程已经有线程投入运行,即该进程占用了CPU资源。故选择A选项。
![]( //img1.runjiapp.com/duoteimg/tiku/images/pc/questionBank/main-list-title-icon.png)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_14.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_62.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_45.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_84.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_86.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_20.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_26.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_15.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_75.jpg)
热门标签