
- Operating System Tutorial
- OS - Home
- OS - Overview
- OS - Components
- OS - Types
- OS - Services
- OS - Properties
- OS - Processes
- OS - Process Scheduling
- OS - Scheduling algorithms
- OS - Multi-threading
- OS - Memory Management
- OS - Virtual Memory
- OS - I/O Hardware
- OS - I/O Software
- OS - File System
- OS - Security
- OS - Linux
- OS - Exams Questions with Answers
- OS - Exams Questions with Answers
- Operating System Useful Resources
- OS - Quick Guide
- OS - Useful Resources
- OS - Discussion
How interrupt is handled by OS and what are the services for user and system?
An interrupt is generally called as a signal, which is informing a program that a particular event has occurred. It causes a receiving program to stop and create a program to serve the interrupt.
Example − When some process is running into the operating system and when you type a keystroke on the keyboard, then this keystroke will become an interrupt for the running process.
Interrupts are mostly caused by devices attached to the computer. An interrupt is handled by one of the important routines of the operating system i.e. Interrupt Service Routine.
Whenever any interrupt occurs then the processor will execute the interrupt service routine. CPU periodically checks for interrupts after each instruction. The interrupt controller passes the interrupt number to the CPU when the interrupt occurs. It uses this number to search an interrupt vector table to find the appropriate interrupt service routine to execute.
Interrupts are also assigned priorities to handle the case of simultaneous requests from interrupts. Whenever an interrupt occurs CPU saves the current state of the program and it jumps to the interrupt handler code. When an interrupt is done, the program state is reloaded and the program resumes.
Services for User and System
Now let us see the services provided by OS which are helpful to user as well as to the system.
Following are the services provided by the general-purpose operating systems −
User program execution
I/O operation
File system manipulation
Error detection
Memory management or resource allocation
Synchronization
Process management
The services that are helpful to the users are as follows −
User program execution
I/O operation
Error detection
Process management
The services that are helpful to the system are as follows −
File system manipulation
Memory management or resource allocation
Synchronization
Process management
- Related Articles
- What are the services provided by an OS with multiple users?
- Difference Between Interrupt and Polling in OS
- What are operating system services?
- What are the interrupt stages and processing?
- What are the user and system goals of Operating Systems?
- What is the user interface and operating system interface?
- What are hardware and software resources managed by the OS?
- What are the differences between Client OS and Server OS?
- What are issues in congestion control and how is it handled in TCP/IP?
- What are interrupts and how interrupt handling is done in modern operating systems?
- What are the roles of the user interface and kernel of an operating system?
- What is an interrupt and how does the processor handle normal and multiple interrupts?
- What is Digital Marketing, and What Are the Services of Digital Marketing?
- How the OS interfaces between the user, apps , hardware?
- How IPC between a user application and an OS Subsystem in Windows?
