Question

cs 501 advance computer architecture

Q-1Suppose that a certain program takes 300 seconds of elapsed time toexecute. Out of these 300

seconds, 280seconds is the CPU time andthe rest is I/O time. What will be the elapsed time?[5]

Q-2Consider an I/O bus that can transfer 6 bytes of data in one buscycle. Suppose that a designer is

planning to attach the following twocomponents to this bus.

Harddrive with a transfer rate of 100 M bytes/sec

Videocard with a transfer rate of 128 M bytes/sec

Whatwill be the maximum bandwidth from these two components? (Themaximum frequency of the bus

is 30MHz) [5]

Q-3What percentage of time will a 20 MIPS processor spend in the busywait loop of an 85-character line

printerwhen it takes 2 msec to print a character and a total of 765instructions need to be executed to

printan 85 character line? Assume that 4 instructions are executed inthe polling loop? [5]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

We can use the following formula to compute theexecution time of this loop.

         ET = CPI × IC × T
         ET = (CPI
 × TC) / f ……..(1)

Where,
         CPI = Clocks per Instruction
         IC = Instruction Count
         T = Time period of the clock
         f = Frequency of the clock

Putting the values in (1),we get
         ET = ((5+6)
 × 65535) / (2 ×106)
              = (11
 ×65535) / (2 × 106)
              = 720885 / (2
 ×106)
         ET = 0.36 sec


Add a comment
Know the answer?
Add Answer to:
cs 501 advance computer architecture
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • cs 501 advance computer architecture

    Q-1Suppose that a certain program takes 300 seconds of elapsed time toexecute. Out of these 300seconds, 280seconds is the CPU time andthe rest is I/O time. What will be the elapsed time?[5]Q-2Consider an I/O bus that can transfer 6 bytes of data in one buscycle. Suppose that a designer isplanning to attach the following twocomponents to this bus.Harddrive with a transfer rate of 100 M bytes/secVideocard with a transfer rate of 128 M bytes/secWhatwill be the maximum bandwidth from these...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT