Plz Discuss this assignment
Assignment No. 05
CS501: Advanced Computer Architecture
Total Marks: 20
Due Date: 03-07-13
Please read the following instructions carefully before assignment submission.
It should be clear that your assignment will not get any credit if:
The objective of this assignment is:
Suppose we have a benchmark that executes in 100 seconds of elapsed time, where 90 seconds is CPU time and the rest is I/O (Input/output) time. If CPU time improves by 50% per year for the next five years but I/O time doesn’t improve, how much faster will our program run at the end of five years?
You are required to calculate the CPU improved performance and improved elapsed time.
Question No 2: (4 marks)
Consider a 20 MIPS (Microprocessor without Interlocked Pipeline Stages) processor with several input devices attached to it, each running at 1000 characters per second. Assume that it takes 17 instructions to handle an interrupt. If the hardware interrupt response takes 1msec, what is the maximum number of devices that can be handled simultaneously?
NOTE: Theoretical answer will not be considered
Question No 3: (6 Marks)
If we want the lowest latency for an I/O operation to a single I/O device; while in terms of lowest impact on processor utilization from a single I/O device then what will be the orders/arrangements of Interrupt driven, DMA(Direct Memory Access) and polling in both scenarios? Explain reasons.
NOTE: Give answer within 3-5 lines. Otherwise answer will not be considered.
GOOD LUCK J
yeh ordering konsy scenario k lia hai hasnat bhai and zeemal bahi
2 arrangements deni hain
kahan pe ghalt hain calculations hasnat bhai
yeh 1.85 ms kaisy calculate kia hai sir nay
Arrangements that i found from net
lowest latency for an I/O operation to a single I/O device, the order is of polling, DMA, and interrupt driven.
lowest impact on processor utilization from a single I/O device, the order is DMA, interrupt driven, and polling.
G sis mainay jb calculate ki to wo to 1.0000035ms aai ha?? wit abt U??
1.85 micro second *1000 = 1.85ms answer given in the book is correct
i think (1/1.85)*1000=540 devices
is it rite?
if u solv
17/(20 x 10^6) = 8.5 x 10^7
8.5 x 10^7 => 0.85 x 10^6
also 1 ms is equal to 1 x 10^6
so we will add both values
1.85 x 10^6
DMA: A mechanism that provides a device controller with the ability to transfer data directly to or from the memory without involving the processor.
Elapsed CPU time
cputime returns the total CPU time (in seconds) used by your MATLAB® application from the time it was started. This number can overflow the internal representation and wrap around.
The following code returns the CPU time used to run surf(peaks(40)).
t = cputime; surf(peaks(40)); e = cputime-t