操作系统:进程状态转换图
我有:
AI/O 设备
B 处理器
C 进程
我的主内存足够大,可以容纳 C 进程。
A 小于 B,B 小于 C
一次可以处于块挂起状态或就绪挂起状态的进程的最大数量是多少?
换句话说:根据我上面显示的数据,一个硬盘一次可以容纳多少个进程? A、B、C 是数字
I have:
A I/O devices
B Processors
C Processes
My main memory is large enough to hold C processes.
A is smaller than B and B smaller than C
What is the maximum number of processes that can be in either block-suspended state or in ready-suspended state at one time?
In other words: How many processes can a hard drive hold at one time according to my data shown above?
A,B,C are numbers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
阻塞进程的最大数量可以是C,否则可能会死锁。不会导致死锁的最大阻塞进程为 C - 1。必须有人在某处工作才能推进系统。
就绪进程的最大数量将为 C - B。一切都已准备好运行,并且 B 个进程当前正在运行。
I/O 设备的数量并不重要。要么每个人都在争夺单一资源,要么每个人都在争夺许多资源。最终,争用的数量将成为资源利用率的一个因素。
The maximum number of blocked processes can be C, you could be dead-locked. The maximum blocked processes that won't result in a deadlock is C - 1. Someone has to be doing work somewhere to advance the system.
The maximum number of ready processes is going to be C - B. Everything is ready to run, and B processes are currently running.
The number of I/O devices doesn't matter. Either everyone is fighting over a single resource, or everyone is fighting over many resources. In the end, the amount of contention is going to be a factor of resource utilization.