Question: a computer system with one device for input two printers...
A computer system with one device for input, two printers. Now two programs (processes) are launched simultaneously with A runs first and followed by B. The running trace for A is as follows: computing 50ms, printing 100ms, computing 50ms, printing 100ms, end. The running trace for B is as follows: computing 50ms, input data 80ms, computing 100ms, end.
You are asked to Draw a Gantt chart show the running behavior of these two programs and answer the following questions:
When the two programs run, is CPU ever in idle waiting state? If yes, when it is? Why there is an idle waiting?
Any waiting for programs A and B? Why there is waiting for them?