What percentage of time will a 20 MIPS processor spend in the busy wait loop of 65-character line printer when it takes 3 m-sec to print a character and a total of 457 instructions need to be executed to print 65 character lines? Assume that 4 instructions are executed in the polling loop?
The processor executes 20 million instructions per second, and we know that printing a single character takes 3 ms. Thus, in order to print all the characters one must take 195 ms. To do this we need to perform 457 instructions, which in total is 0.002285 ms, hence the delay in following the instructions in the processor will make no changes in the total time of the printer. Response: 195 ms.
Thank you very much for the assistance. This is the 3rd time using this service and I'm so grateful to have found a company that is professional, reliable, and delivers excellent work. I'll absolutely stick with this company for anything I'd need assistance with through my education. Very much appreciated!