Ask Question
14 June, 18:22

How does polling-based network receive work? How is it different than interrupt based network? Describe both functions and list as many differences as you can identify. What factors determine the relative performance between a programmed I/O and a DMA?

+2
Answers (1)
  1. 14 June, 21:32
    0
    In a polling-based network receives, the operating system keeps checking the status register after a fixed time interval to see whether a device needs hardware attention or not. CPU gradually checks the status of receive bit after a defined time interval of a clock and if the value of receive bit is true then data is moved from the RX register to the memory. In interrupt-based networks, whenever a device needs hardware processing then an interrupt is raised to inform the CPU for device attention. The data of the device is transferred to memory from the network card.

    Polling is a protocol, not a hardware mechanism where the device gets attention by CPU. An interrupt is a hardware mechanism, not a protocol where the device gets attention by the interrupt handler. In polling, during receiving, parts of received data need to transfer to memory but in case of interrupts, whole data is transferred at once after receiving is done. An interrupt is a heavy operation as compared to pooling because hardware involves in it. For large amounts of data, Polling becomes an inefficient method. In polling, CPU gradually checks devices at regular intervals whereas the Interrupt handler can send interrupt at any time. Each device has its own Command ready bit which indicates whether the device requires servicing or not. In polling, CPU wastes numerous clock cycles by repetitively checking the command-ready little bit of each device. In Interrupt based network, the interrupt request line indicates whether the device requires servicing or not. In interrupt-based network, CPU cycles not wasted but CPU is disturbed only when device send interrupt signals.

    Relative performance between programmed I/O and DMA:

    For determining the relative performance between programmed I/O and DMA, important factors are:

    1. Size of data

    2. Frequency of operations
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “How does polling-based network receive work? How is it different than interrupt based network? Describe both functions and list as many ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers