Q-1 a) Suppose that a certain program takes 300 seconds ofelapsed time to execut
ID: 3611850 • Letter: Q
Question
Q-1a) Suppose that a certain program takes 300 seconds ofelapsed time to execute. Out of these 300 seconds, 280seconds isthe CPU time and the rest is I/O time. What will be the elapsedtime? [5] b) Consider an I/O bus that can transfer 6 bytes ofdata in one bus cycle. Suppose that a designer is planning toattach the following two components to this bus. Hard drive with a transfer rate of 100 Mbytes/sec Video card with a transfer rate of 128 Mbytes/sec What will be the maximum bandwidth from these twocomponents? (The maximum frequency of the bus is30 MHz) [5] c) What percentage of time will a 20 MIPS processorspend in the busy wait loop of an 85-character line printer when ittakes 2 msec to print a character and a total of 765 instructionsneed to be executed to print an 85 character line? Assume that 4instructions are executed in the polling loop? [5] Q-1
a) Suppose that a certain program takes 300 seconds ofelapsed time to execute. Out of these 300 seconds, 280seconds isthe CPU time and the rest is I/O time. What will be the elapsedtime? [5] Hard drive with a transfer rate of 100 Mbytes/sec Video card with a transfer rate of 128 Mbytes/sec What will be the maximum bandwidth from these twocomponents? (The maximum frequency of the bus is30 MHz) [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%.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.