Question #39194

a 20 kbps device is connected to a processor. the interrupt overhead is 10 microseconds. what is the minimum performance achieved when interrupt initiated data transfer is used instead of programmed i/o?

Expert's answer

Answer on Question#39194 - Math - Other

a 20 kbps device is connected to a processor. the interrupt overhead is 10 microseconds. what is the minimum performance achieved when interrupt initiated data transfer is used instead of programmed i/o?

Solution

Denote by xx bytes the length of the data packet, then time in which a packet can be handled is 8x20,000=x2,500\frac{8 \cdot x}{20,000} = \frac{x}{2,500}. Therefore, we can calculate the time for an interrupt servicing x2,500+0.01\frac{x}{2,500} + 0.01 s.


x2,500x2,500+0.01=xx+25=125x+25\frac{\frac{x}{2,500}}{\frac{x}{2,500} + 0.01} = \frac{x}{x + 25} = 1 - \frac{25}{x + 25}


Achieved performance x2,500+0.01\frac{x}{2,500} + 0.01 s. Supposing x=1x = 1, we obtain minimum performance 251+250.0385\frac{25}{1 + 25} \approx 0.0385.

Answer

0.0385 or 3.85%


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS