(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ย
OS concepts 2 handling of interrupts
1. Operating System Concepts: 2
Handling of Interrupts
Prof Neeraj Bhargava
Vaibhav Khanna
Department of Computer Science
School of Engineering and Systems Sciences
Maharishi Dayanand Saraswati University Ajmer
2. Computer System Organization
โข Computer-system operation
โ One or more CPUs, device controllers connect
through common bus providing access to
shared memory
โ Concurrent execution of CPUs and devices
competing for memory cycles
3. Computer-System Operation
โข I/O devices and the CPU can execute
concurrently
โข Each device controller is in charge of a
particular device type
โข Each device controller has a local buffer
โข Each device controller type has an operating
system device driver to manage it
โข CPU moves data from/to main memory to/from
local buffers
โข I/O is from the device to local buffer of
controller
โข Device controller informs CPU that it has
finished its operation by causing an interrupt
4. Common Functions of Interrupts
โข Interrupt transfers control to the interrupt
service routine generally, through the
interrupt vector, which contains the
addresses of all the service routines
โข Interrupt architecture must save the
address of the interrupted instruction
โข A trap or exception is a software-
generated interrupt caused either by an
error or a user request
โข An operating system is interrupt driven
6. Computer Startup
โข bootstrap program is loaded at
power-up or reboot
โ Typically stored in ROM or EPROM,
generally known as firmware
โ Initializes all aspects of system
โ Loads operating system kernel and
starts execution
7. Interrupt Handling
โข The operating system preserves the
state of the CPU by storing registers
and the program counter
โข Determines which type of interrupt has
occurred:
โ polling
โ vectored interrupt system
โข Separate segments of code determine
what action should be taken for each
type of interrupt