Q-1 a) Suppose thata certain program takes 300 seconds of elapsed time to execut
ID: 3611771 • Letter: Q
Question
Q-1a) Suppose thata certain program takes 300 seconds of elapsed time to execute. Outof these 300 seconds, 280seconds is the CPU time and the rest isI/O time. What will be the elapsed time? [5] b)
Consider an I/O bus that can transfer 6 bytes of data in one buscycle. Suppose that a designer is planning to attach the followingtwo components to this bus. Hard drivewith a transfer rate of 100 M bytes/sec Video cardwith a transfer rate of 128 M bytes/sec What will bethe maximum bandwidth from these two components? (The maximumfrequency of the bus is 30 MHz) [5] c)
What percentage of time will a 20 MIPS processor spend in the busywait loop of an 85-character line printer when it takes 2 msec toprint a character and a total of 765 instructions need to beexecuted to print an 85 character line? Assume that 4 instructionsare executed in the polling loop? [5] Q-1
a) Suppose thata certain program takes 300 seconds of elapsed time to execute. Outof these 300 seconds, 280seconds is the CPU time and the rest isI/O time. What will be the elapsed time? [5] b)
Consider an I/O bus that can transfer 6 bytes of data in one buscycle. Suppose that a designer is planning to attach the followingtwo components to this bus. Hard drivewith a transfer rate of 100 M bytes/sec Video cardwith a transfer rate of 128 M bytes/sec What will bethe maximum bandwidth from these two components? (The maximumfrequency of the bus is 30 MHz) [5] c)
What percentage of time will a 20 MIPS processor spend in the busywait loop of an 85-character line printer when it takes 2 msec toprint a character and a total of 765 instructions need to beexecuted to print an 85 character line? Assume that 4 instructionsare executed in the polling loop? [5]
Explanation / Answer
Elapsed time = CPU Time + I/O Time
The total number of instructions = 765
Out of 765 instructions executed to print a line, 85 x 4=340 is required forpolling
The percentage of the total time is 84.97/85 = 99.96%.
I hope this will helps to you
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.