Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS501 Assignment No. 03 idea solution Spring 201
#1
IDEA SOLUTION

Suppose that a certain program takes 200 seconds of elapsed time to execute. Out of
these 200 seconds, 180 seconds is the CPU time and the rest is I/O time. If the CPU
performance improves by 40% every year for the next seven years because of
developments in technology, but the I/O performance stays the same, let us look at the
following table, which shows the situation at the end of each year. Remember that
Elapsed time = CPU time + I/O time.
This gives us the I/O time = 200 – 180 = 20 seconds at the beginning, which is 10 % of
the elapsed time.
Advanced Computer Architecture-CS501
__________________________________________________ ______
Last Modified: 17-Feb-07 Page 234
Year # CPU
Time
I/O
Time
Elapsed
Time
I/O Time x100 %
Elapsed Time
Year
0 180 20 200 10 %
1 129 20 149 13.42 %
2 92 20 112 17.85 %
3 66 20 86 23.25 %
4 47 20 67 29.85 %
5 34 20 54 37.03 %
6 24 20 44 45.45 %
7 17 20 37 54.05 %
It can be easily seen that over seven years, the I/O time will become more than 50 % of
the total time under these conditions. Therefore, the improvement of I/O performance is
as important as the improvement of CPU performance. I/O performance will also be
discussed in detail in a later section.


Example # 325
What percentage of time will a 20MIPS processor spend in the busy wait loop of an 80-
character line printer when it takes 1 msec to print a character and a total of 565
instructions need to be executed to print an 80 character line. Assume that two
instructions are executed in the polling loop.
Solution:
Out of the total 565 instructions executed to print a line, 80x2=160 are required for
polling. For a 20MIPS processor, the execution of the remaining 405 instructions takes
405/ (20x106) = 20.25μsec. Since the printing of 80 characters takes 80ms, (80-0.02025)
=79.97msec is spent in the polling loop before the next 80 characters can be printed. This
is 79.97/80=99.96% of the total time.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  get your solution in 24 hours 2020 Xpert 0 8,797 10-11-2020, 10:09 PM
Last Post: Xpert
  get your solution in 24 hours 2020 Xpert 0 3,177 10-11-2020, 10:09 PM
Last Post: Xpert
  vuhelp.com forum is providing solution of virutal university students in 24 hour 2014 Xpert 3 2,489 11-17-2014, 06:11 PM
Last Post: leo861323
  GDB of FIN730 - Investment Analysis & Portfolio Management (Need Solution) Muhammad Husnain Mughal 1 1,876 05-15-2014, 08:21 PM
Last Post: hondasr8
  GDB of FIN723 - Taxation Management (Need Solution) Muhammad Husnain Mughal 1 2,928 05-07-2014, 04:09 AM
Last Post: Vuhelper
  Need ACC501 - Business Finance Assignment No 2 Solution. Umar Abbas 2 4,249 02-07-2014, 08:23 PM
Last Post: Umar Abbas
  operating assinment solution help nenanena 9 6,096 08-18-2013, 03:53 AM
Last Post: Xpert
  sta301 assignment 4 27 jun bc110200090 6 3,573 01-26-2013, 02:05 AM
Last Post: Vuhelper
  cs506 2nd assignment millee 0 2,655 12-04-2012, 11:30 PM
Last Post: millee
  cs506 2nd Assignment Neelam Ahmad 5 3,123 12-04-2012, 11:24 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)