- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference Between Interrupt and Polling in OS
In this post, we will understand the difference between interrupt and polling in operating system −
It is a process with the help of which the CPU is notified of requiring attention.
It is considered as a hardware mechanism.
An interrupt handler services/works with the device.
Interrupt-request line indicates that the device needs to be serviced.
CPU is used only when a device requires servicing.
This, in turn, saves the CPU cycles.
An interrupt can occur at any point in time.
It becomes inefficient if devices frequently interrupt the CPU.
The process in which the CPU constantly checks the status of the device- to see if it needs the CPU's attention.
It is a protocol.
In this protocol, the CPU services the device.
The command-ready bit indicates that the device needs to be serviced.
The CPU needs to wait and check if a device needs to be serviced.
This wastes many of the CPU cycles.
CPU polls the devices at regular intervals of time.
This protocol becomes inefficient when the CPU rarely finds a device that is ready to be serviced.
- Difference between Network OS and Distributed OS
- Difference Between Deadlock and Starvation in OS
- Difference Between Paging and Swapping in OS
- Difference Between Multitasking and Multithreading in OS
- Difference Between Buffering and Caching in OS
- Difference Between Paging and Segmentation in OS
- Difference Between Spooling and Buffering in OS
- Difference Between Virtual and Cache Memory in OS
- Difference Between Semaphore and Monitor in OS\n
- Difference Between Preemptive and Non-Preemptive Scheduling in OS
- What is the difference between context switching and interrupt handling?
- Difference Between Long-Term and Short-Term Scheduler in OS
- Differentiate between OS and DBMS files and OS and DBMS buffer manager
- How interrupt is handled by OS and what are the services for user and system?
- What are the differences between Client OS and Server OS?