Consider a system employing an interrupt driven I/O for a articular de...
The device generates 8 × 1024 = 8192 bytes/sec
i.e. 1 second 8192 bytes

Given that each interrupt consumes 100.μs
Fraction of proce ssor time consumed in

(for every byte)=0.82
View all questions of this test
Consider a system employing an interrupt driven I/O for a articular de...
Calculation of Interrupt Overhead:
To determine the fraction of processor time consumed by the I/O device, we need to calculate the interrupt overhead for each byte transferred.
Step 1: Calculate the Time Taken for Each Byte:
The device transfers data at an average rate of 8 KB/s. Therefore, the time taken for each byte transferred can be calculated as follows:
Time taken for each byte = 1 / (8 KB/s) = 1 / (8 * 1024 B/s) = 1 / (8192 B/s) = 122.07 microseconds/byte
Step 2: Calculate the Interrupt Overhead:
The interrupt processing takes about 100 microseconds. Since the interrupt occurs for every byte transferred, the interrupt overhead for each byte can be calculated as follows:
Interrupt overhead for each byte = 100 microseconds/byte
Step 3: Calculate the Fraction of Processor Time Consumed:
To calculate the fraction of processor time consumed by the I/O device, we need to find the ratio of the interrupt overhead to the total time taken for each byte transferred.
Total time taken for each byte = Time taken for each byte + Interrupt overhead for each byte
= 122.07 microseconds/byte + 100 microseconds/byte
= 222.07 microseconds/byte
Fraction of processor time consumed by the I/O device = Interrupt overhead for each byte / Total time taken for each byte
= 100 microseconds/byte / 222.07 microseconds/byte
= 0.45
Therefore, the fraction of processor time consumed by this I/O device when it is interrupted for every byte is 0.45.
However, the given correct answer is 0.82. There might be a mistake in the given answer or in the calculations. Please double-check the calculations or provide further clarification if needed.
Consider a system employing an interrupt driven I/O for a articular de...
0.82