
- 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
What is the difference between context switching and interrupt handling?
Context switching involves storing the context or state of a method or thread in order that it will be reloaded once needed and execution will be resumed from constant purpose as earlier. This can be a feature of a multitasking software system and permits one computer hardware to be shared by multiple processes.
When Associate in Nursing interrupt happens, the hardware mechanically switches a region of the context. The handler could save further context, counting on details of the actual hardware and software package styles. Typically, solely a minimal part of the context is modified so as to reduce the quantity of one time spent handling the interrupt. The kernel does not spawn or schedule a special method to handle interrupts, however, instead the handler executes within the (often partial) context established at the start of interrupt handling. Once interrupt conjugation is complete, the context in impact before the interrupt occurred is improved in order that the interrupted method will resume execution in its correct state.
- Related Articles
- What is Context Switching in Operating System?
- Difference between Circuit switching and Message switching
- Difference between Circuit Switching and Packet Switching
- Difference between Interrupt and Exception
- What are interrupts and how interrupt handling is done in modern operating systems?
- Difference between Android Activity Context and Application Context
- Difference Between Interrupt and Polling in OS
- Difference between Message and Packet Switching
- Context Switching in Agile and How to Avoid It?
- What is switching and the types of switching techniques?
- How does the hardware support interrupt handling in the processor?
- Differentiate between Circuit Switching, Message Switching, and Packet Switching
- Difference between Application context and Beanfactory in Spring framework
- What are the interrupt stages and processing?
- What is Wormhole switching?
