





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Notes; Professor: Barnett; Class: OPERATING SYSTEMS; Subject: Computer Science; University: University of Richmond; Term: Spring 2009;
Typology: Study notes
1 / 37
This page cannot be seen from the preview
Don't miss anything!
system access (shared)
The Interrupt Mechanism •^
Interrupts occur due to hardware events
-^
Interrupts occur due to hardware events (completion of disk I/O, etc.) or softwareevents (expiration of a timer, reception of amessage, etc.).
for pending interrupts after each instructionfor pending interrupts after each instructionexecution.
The Interrupt Mechanism •^
Interrupt vector
an area of system memory
Interrupt vector
an area of system memory
containing a pointer to the interrupt handlerfor each type of interrupt.
state for the suspended process, thenperforms actions necessary to service theperforms actions necessary to service theinterrupt.
priorities: interupt handlers may themselvesbe interruptable!
Peripheral Handling: Direct Memory Access •^
All the work to complete the transfer occurs
-^
All the work to complete the transfer occurs between the device and the memorycontroller.
can handle only one request at a time
some
can handle only one request at a time, somememory requests from the CPU may bedelayed by requests from the deviceperforming DMA.
Monitor mode for execution of OS (also calledSupervisor mode or Kernel mode)
from dominating CPU usage. Hardware timerfrom dominating CPU usage. Hardware timerneeded to implement this feature.
Most fundamental concept in OS
-^
Most fundamental concept in OS
process: an active entity
program
to execute, a
process
is created
for that programfor that program
Fundamental task of any OS
-^
Fundamental task of any OS
multiprogramming
g^
g
Running process makes I/O syscall– moved to “not running” state– can’t be selected until I/O is complete!
blocked
: waiting for something, can’t be selected
d^
j^
t it hi
f^
CPU ti
-^
ready
: just itching for CPU time…
running
,^
blocked
,^
ready
-^
new
: OS might not yet admit (e.g., performance)
-^
exiting
: halted or aborted
P^
bl
bl
k d
diff
t^
t
Problem: processes blocked on different events
must search entire queue
Solution:
one queue for each type of event
Solution:
one queue for each type of event
on disk
therefore not available to CPU