开发者

Operating Systems: Process State Transition Diagram

开发者 https://www.devze.com 2023-02-08 16:50 出处:网络
I have: A I/O devi开发者_运维问答ces B Processors C Processes My main memory is large enough to hold C processes.

I have:

A I/O devi开发者_运维问答ces

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消