SlideShare a Scribd company logo
5
Most read
6
Most read
7
Most read
Topic Title - Polling
Paper Name - Computer Organisation
Paper Code - PCC-CS301
Student Name - Sayak Jana
University Roll Number - 13000121008
Department - Computer Science & Engineering
College - Techno Main Salt Lake
Description
Polling is the process where the computer or controlling device waits for an external device to check for its readiness or state,
often with low-level hardware. For example, when a printer is connected via a parallel port, the computer waits until the printer
has received the next character. These processes can be as minute as only reading one bit. This is sometimes used
synonymously with 'busy-wait' polling. In this situation, when an I/O operation is required, the computer does nothing other than
check the status of the I/O device until it is ready, at which point the device is accessed. In other words, the computer waits until
the device is ready. Polling also refers to the situation where a device is repeatedly checked for readiness, and if it is not, the
computer returns to a different task. Although not as wasteful of CPU cycles as busy waiting, this is generally not as efficient as
the alternative to polling, interrupt-driven I/O.
In a simple single-purpose system, even busy-wait is perfectly appropriate if no action is possible until the I/O access, but more
often than not this was traditionally a consequence of simple hardware or non-multitasking operating systems.
Polling is often intimately involved with very low-level hardware. For example, polling a parallel printer port to check whether it is
ready for another character involves examining as little as one bit of a byte. That bit represents, at the time of reading, whether a
single wire in the printer cable is at low or high voltage. The I/O instruction that reads this byte directly transfers the voltage state
of eight real world wires to the eight circuits (flip flops) that make up one byte of a CPU register.
Polling has the disadvantage that if there are too many devices to check, the time required to poll them can exceed the time
available to service the I/O device.
Algorithm:
Polling can be described in the following steps:
Host actions:
1. The host repeatedly reads the busy bit of the controller until it becomes clear (with a value of 0).
2. When clear, the host writes the command into the command register. If the host is sending output, it sets
the write bit and writes a byte into the data-out register. If the host is receiving input, it reads the
controller-written data from the data-in register, and sets the read bit to 0 as the next command.
3. The host sets the command-ready bit to 1.
Controller actions:
1. When the controller notices that the command-ready bit is set, it sets the busy bit to 1.
2. The controller reads the command register. If the write bit inside is set, it reads from the data-out register
and performs the necessary I/O operations on the device. If the read bit is set, data from the device is
loaded into the data-in register for the host to read.
3. Once the operations are over, the controller clears the command-ready bit, clears the error bit to show
the operation was successful, and clears the busy bit.
Types:
A polling cycle is the time in which each element is monitored once. The optimal polling cycle will vary according to several
factors, including the desired speed of response and the overhead (e.g., processor time and bandwidth) of the polling.
In roll call polling, the polling device or process queries each element on a list in a fixed sequence. Because it waits for a
response from each element, a timing mechanism is necessary to prevent lock-ups caused by non-responding elements. Roll
call polling can be inefficient if the overhead for the polling messages is high, there are numerous elements to be polled in each
polling cycle and only a few elements are active.
In hub polling, also referred to as token polling, each element polls the next element in some fixed sequence. This continues until
the first element is reached, at which time the polling cycle starts all over again.
Polling can be employed in various computing contexts in order to control the execution or transmission sequence of the
elements involved. For example, in multitasking operating systems, polling can be used to allocate processor time and other
resources to the various competing processes.
In networks, polling is used to determine which nodes want to access the network. It is also used by routing protocols to retrieve
routing information, as is the case with EGP (exterior gateway protocol).
An alternative to polling is the use of interrupts, which are signals generated by devices or processes to indicate that they need
attention, want to communicate, etc. Although polling can be very simple, in many situations (e.g., multitasking operating
systems) it is more efficient to use interrupts because it can reduce processor usage and/or bandwidth consumption.
Poll message:
A poll message is a control-acknowledgment message.
In a multidrop line arrangement (a central computer and different terminals in which the terminals
share a single communication line to and from the computer), the system uses a master/slave polling
arrangement whereby the central computer sends message (called polling message) to a specific
terminal on the outgoing line. All terminals listen to the outgoing line, but only the terminal that is
polled replies by sending any information that it has ready for transmission on the incoming line.
In star networks, which, in its simplest form, consists of one central switch, hub, or computer that acts
as a conduit to transmit messages, polling is not required to avoid chaos on the lines, but it is often
used to allow the master to acquire input in an orderly fashion. These poll messages differ from those
of the multidrop lines case because there are no site addresses needed, and each terminal only
receives those polls that are directed to it.
Example:
Here-
● Tpoll = Time taken for polling
● Tsend = Time taken for sending the data = Transmission delay + Propagation delay = Tt + Tp
Efficiency
Efficiency (η) = Useful Time / Total Time
● Useful time = Transmission delay of
data packet = Tt
● Useless time = Time wasted during
polling + Propagation delay of data
packet = Tpoll + Tp
Thus,
.
Advantages-
● Unlike in Time Division Multiplexing, no slot is ever wasted.
● It leads to maximum efficiency and bandwidth utilization.
Disadvantages-
● Time is wasted during polling.
● Link sharing is not fair since each station has the equal probability of winning in each round.
● Few stations might starve for sending the data.
Thank You

More Related Content

PPTX
Instruction Set Architecture
PDF
ARM Architecture
PPT
Parallel processing and pipelining
PPTX
8086 Interrupts & With DOS and BIOS by vijay
PPTX
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
PPTX
Deadlock Presentation
DOCX
ARM7-ARCHITECTURE
PPT
Lec 03 ia32 architecture
Instruction Set Architecture
ARM Architecture
Parallel processing and pipelining
8086 Interrupts & With DOS and BIOS by vijay
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
Deadlock Presentation
ARM7-ARCHITECTURE
Lec 03 ia32 architecture

What's hot (20)

PPSX
Token ring
PPTX
I/O Organization
PPTX
Xilinx 4000 series
PPT
Major Function of i/o module
PDF
Arm instruction set
PPTX
Semiconductor memories
DOCX
Udp vs-tcp
PPTX
Structure of switches
PPT
Data and Computer Communication
PDF
Admission control
PPT
Web and http computer network
PPTX
Microcontoller and Embedded System
PPT
chap 18 multicore computers
DOCX
Block diagram of 80286
PPTX
Superscalar Architecture_AIUB
DOCX
DFI_Blog
PDF
Memory Organization of a Computer System
PDF
SOC Interconnects: AMBA & CoreConnect
PDF
Communication Protocols (UART, SPI,I2C)
PPTX
Lecture 5 inter process communication
Token ring
I/O Organization
Xilinx 4000 series
Major Function of i/o module
Arm instruction set
Semiconductor memories
Udp vs-tcp
Structure of switches
Data and Computer Communication
Admission control
Web and http computer network
Microcontoller and Embedded System
chap 18 multicore computers
Block diagram of 80286
Superscalar Architecture_AIUB
DFI_Blog
Memory Organization of a Computer System
SOC Interconnects: AMBA & CoreConnect
Communication Protocols (UART, SPI,I2C)
Lecture 5 inter process communication
Ad

Similar to Polling_Computer_Organisation.ppt (20)

DOCX
Data link control notes
PPTX
Logical link protocols and service data.pptx
PPTX
Presentation on control access protocol
PDF
Wireless LAN in Data Communication & Networking
PPTX
multiacess protocol
PPT
Embedded System serial Communication.ppt
PPT
Ch02
PDF
Probabilistic Polling System Approach for IoT Secure Routing
PDF
Probabilistic Polling System Approach for IoT Secure Routing
PPT
Chapter 11
PPT
Data Communication and networks note ppt
PPTX
Computer Networks
DOCX
seminar report on multiple access control protocol submitted by munesh
PDF
Chapter 4
PDF
Updatable Queue Protocol Based On TCP For Virtual Reality Environment
PPTX
Internetworking
PPT
PPT
Communication Protocol - Arindam Samanta
PPT
Lecture-2 Data Communication ~www.fida.com.bd
Data link control notes
Logical link protocols and service data.pptx
Presentation on control access protocol
Wireless LAN in Data Communication & Networking
multiacess protocol
Embedded System serial Communication.ppt
Ch02
Probabilistic Polling System Approach for IoT Secure Routing
Probabilistic Polling System Approach for IoT Secure Routing
Chapter 11
Data Communication and networks note ppt
Computer Networks
seminar report on multiple access control protocol submitted by munesh
Chapter 4
Updatable Queue Protocol Based On TCP For Virtual Reality Environment
Internetworking
Communication Protocol - Arindam Samanta
Lecture-2 Data Communication ~www.fida.com.bd
Ad

Recently uploaded (20)

PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Welding lecture in detail for understanding
PPTX
Sustainable Sites - Green Building Construction
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
composite construction of structures.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
additive manufacturing of ss316l using mig welding
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Welding lecture in detail for understanding
Sustainable Sites - Green Building Construction
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
R24 SURVEYING LAB MANUAL for civil enggi
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
composite construction of structures.pdf
Internet of Things (IOT) - A guide to understanding
Lecture Notes Electrical Wiring System Components
Embodied AI: Ushering in the Next Era of Intelligent Systems
Foundation to blockchain - A guide to Blockchain Tech
additive manufacturing of ss316l using mig welding
CH1 Production IntroductoryConcepts.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx

Polling_Computer_Organisation.ppt

  • 1. Topic Title - Polling Paper Name - Computer Organisation Paper Code - PCC-CS301 Student Name - Sayak Jana University Roll Number - 13000121008 Department - Computer Science & Engineering College - Techno Main Salt Lake
  • 2. Description Polling is the process where the computer or controlling device waits for an external device to check for its readiness or state, often with low-level hardware. For example, when a printer is connected via a parallel port, the computer waits until the printer has received the next character. These processes can be as minute as only reading one bit. This is sometimes used synonymously with 'busy-wait' polling. In this situation, when an I/O operation is required, the computer does nothing other than check the status of the I/O device until it is ready, at which point the device is accessed. In other words, the computer waits until the device is ready. Polling also refers to the situation where a device is repeatedly checked for readiness, and if it is not, the computer returns to a different task. Although not as wasteful of CPU cycles as busy waiting, this is generally not as efficient as the alternative to polling, interrupt-driven I/O. In a simple single-purpose system, even busy-wait is perfectly appropriate if no action is possible until the I/O access, but more often than not this was traditionally a consequence of simple hardware or non-multitasking operating systems. Polling is often intimately involved with very low-level hardware. For example, polling a parallel printer port to check whether it is ready for another character involves examining as little as one bit of a byte. That bit represents, at the time of reading, whether a single wire in the printer cable is at low or high voltage. The I/O instruction that reads this byte directly transfers the voltage state of eight real world wires to the eight circuits (flip flops) that make up one byte of a CPU register. Polling has the disadvantage that if there are too many devices to check, the time required to poll them can exceed the time available to service the I/O device.
  • 3. Algorithm: Polling can be described in the following steps: Host actions: 1. The host repeatedly reads the busy bit of the controller until it becomes clear (with a value of 0). 2. When clear, the host writes the command into the command register. If the host is sending output, it sets the write bit and writes a byte into the data-out register. If the host is receiving input, it reads the controller-written data from the data-in register, and sets the read bit to 0 as the next command. 3. The host sets the command-ready bit to 1. Controller actions: 1. When the controller notices that the command-ready bit is set, it sets the busy bit to 1. 2. The controller reads the command register. If the write bit inside is set, it reads from the data-out register and performs the necessary I/O operations on the device. If the read bit is set, data from the device is loaded into the data-in register for the host to read. 3. Once the operations are over, the controller clears the command-ready bit, clears the error bit to show the operation was successful, and clears the busy bit.
  • 4. Types: A polling cycle is the time in which each element is monitored once. The optimal polling cycle will vary according to several factors, including the desired speed of response and the overhead (e.g., processor time and bandwidth) of the polling. In roll call polling, the polling device or process queries each element on a list in a fixed sequence. Because it waits for a response from each element, a timing mechanism is necessary to prevent lock-ups caused by non-responding elements. Roll call polling can be inefficient if the overhead for the polling messages is high, there are numerous elements to be polled in each polling cycle and only a few elements are active. In hub polling, also referred to as token polling, each element polls the next element in some fixed sequence. This continues until the first element is reached, at which time the polling cycle starts all over again. Polling can be employed in various computing contexts in order to control the execution or transmission sequence of the elements involved. For example, in multitasking operating systems, polling can be used to allocate processor time and other resources to the various competing processes. In networks, polling is used to determine which nodes want to access the network. It is also used by routing protocols to retrieve routing information, as is the case with EGP (exterior gateway protocol). An alternative to polling is the use of interrupts, which are signals generated by devices or processes to indicate that they need attention, want to communicate, etc. Although polling can be very simple, in many situations (e.g., multitasking operating systems) it is more efficient to use interrupts because it can reduce processor usage and/or bandwidth consumption.
  • 5. Poll message: A poll message is a control-acknowledgment message. In a multidrop line arrangement (a central computer and different terminals in which the terminals share a single communication line to and from the computer), the system uses a master/slave polling arrangement whereby the central computer sends message (called polling message) to a specific terminal on the outgoing line. All terminals listen to the outgoing line, but only the terminal that is polled replies by sending any information that it has ready for transmission on the incoming line. In star networks, which, in its simplest form, consists of one central switch, hub, or computer that acts as a conduit to transmit messages, polling is not required to avoid chaos on the lines, but it is often used to allow the master to acquire input in an orderly fashion. These poll messages differ from those of the multidrop lines case because there are no site addresses needed, and each terminal only receives those polls that are directed to it.
  • 6. Example: Here- ● Tpoll = Time taken for polling ● Tsend = Time taken for sending the data = Transmission delay + Propagation delay = Tt + Tp
  • 7. Efficiency Efficiency (η) = Useful Time / Total Time ● Useful time = Transmission delay of data packet = Tt ● Useless time = Time wasted during polling + Propagation delay of data packet = Tpoll + Tp Thus,
  • 8. . Advantages- ● Unlike in Time Division Multiplexing, no slot is ever wasted. ● It leads to maximum efficiency and bandwidth utilization. Disadvantages- ● Time is wasted during polling. ● Link sharing is not fair since each station has the equal probability of winning in each round. ● Few stations might starve for sending the data.