Lesson 1 Flashcards
Intro
What is an OS
Software that manages a computers hardware. Provides interface between the computer user and the computer hardware
What is a resource allocator?
the OS acts as a manager of CPU, memory, storage, IO
What is a control program?
manages the execution of user programs to prevent errors and improper use of the computer. Especially with IO devices
What is a bus?
provides access between components and shared memory
What is a device controller?
maintains local buffer storage and set of registers. responsible for moving data between peripherals and local buffer storage
what is a device driver?
driver understands the device controller and provides the OS with an interface to the device
what is an interrupt?
hardware can trigger an interrupt at any time by sending a signal to the CPU on the system bus (usually)
what is an interrupt vector?
a list of addresses (pointers) to the interrupt
high level explanation of interrupt flow
CPU uses interrupt-request line that the CPU checks after executing every instruction, when CPU detects an interrupt it reads the number and jumps to the pointer in the interrupt vector. then returns with “return_from_interrupt”
how does the CPU know which interrupts to prioritize?
interrups have interrupt priority levels
What is the difference between main and secondary memory?
main memory is ram, secondary is storage devices like HDD’s, ssd’s, etc
what is direct memory access? (DMA)
Used for bulk movement of data, basically copies entire blocks of memory of data directly to or from the devices and main memory, only requires 1 interrupt
how do clustered systems work?
utilize SAN’s and distributed lock managers to perform compute across shared stroage (think database)
What is a process?
programs that are organized so that the CPU always has one to execute in a multiprogrammed system
how do multiprogrammed systems works?
the OS keeps several processes in memory simultaneously and works on them switching back and forth when IO is needed