next up previous
Next: About this document ...

CS423UG Homework 4 Solution


November 7, 2005


  1. (4.5)
  2. (4.15)
  3. (4.16)
  4. (4.31)
  5. (5.11)
  6. (5.12)
    A packet is copied for 4 times during this process. There are also two interrupt. Therefore, along with the transmission delay, it takes 6.9152ms to pump one 1024-byte packet, as follows.

    \begin{displaymath}{4 \cdot 1024 \cdot 0.001 + 2 \cdot 1 + {1024 \cdot 8} \over {10 \cdot 10^6 \cdot 10^{-3}}} = 6.9152 \end{displaymath}

    Therefore, the maximum data rate is ${{1024 \cdot 8} \over {6.9152 \cdot 10^{-3}}}
\approx $ 1.185Mbps.
  7. (5.24)
  8. We can use soft timer for polling I/O in the same idea for the clock. Whenever the system enters kernel mode, the soft-timer facility checks for any pending I/O events before it exits, and invokes the associated handlers when appropriate. The advantage of this scheme is same as the original one. It reduces number of interrupts because it avoids interrupts when kernel is running. Thus, this scheme can avoid the overhead of interrupts. However, this scheme can be disadvantageous especially for high-frequency devices, as I/O requests now cannot be processed when the system does not enter the kernel mode. This leads some delay for such requests. Also, the polling time increases linearly as the number of devices increases.



next up previous
Next: About this document ...
Jintae Kim 2005-11-05