Outline for April 4, 2007
-
Greetings and felicitations!
-
My office hours
-
How to submit homework over MyUCDavis
-
What is an operating system?
-
Began with common I/O routines
-
Went on to scheduling jobs
-
Modern: now manages resources on computer: time, disk space, reading and writing, and so forth
-
Example 1: reading what you type
-
Interrupts and all that (IRQ, controller, vectors)
-
How the computer remembers where it was when the interrupt arrives
-
How the computer processes the interrupt
-
How the computer picks up where it left off
-
Nested interrupts
-
Example 2: writing a file to disk
-
Device drivers and direct memory access
-
Operating system checks request to write (file name legal, file does not exist or is writable, and so forth)
-
Operating system tells device driver where to put the file
-
Device driver interacts with disk hardware to copy file out; done in chunks (blocks)
-
Example 3: turning on a Plug-and-Play Windows based system
-
BIOS identifies devices by unique numbers burned into devices' read-only memory (ROM)
-
Windows creates enumerators, one per type of device (ISA for hard drives and cards, port for keyboard and mouse, and so forth)
-
Windows allocates interrupts for each device based on enumerators
-
Windows then loads appropriate device drivers to use those interrupts
Here is a PDF version of this document.