Question: In a computer using 7 state process model with a single CPU and interrupt mechanism, assume that: - Maximum available main memory that can be
In a computer using 7 state process model with a single CPU and interrupt mechanism, assume that:
- Maximum available main memory that can be reserved for all processes except kernel is 500MB.
- A process is allowed to run at most 5 ms and then interrupted (timed out).
-At t=0, there are only 2 processes: Process B (250 MB) is running and Process A (150 MB) is ready,
a) (6p) ==3 ms: B asks user to press any key. Then, what are the current states of A and B?
b) (6p) t=4 ms: Process C (200 MB) is created but NOT in main memory. Write the current states of A, B and C.
c) (6p) t=6 ms: Process C is brought to main memory. Write the current states of A, B and C.
d) (6p) t=8 ms: What are the current states of A, B and C?
e) (6p) t9 ms: The user pressed a key that B was waiting. Now, what are the current states of A, B and C?