Hardware and OS Concepts Flashcards
What is an Operating System (OS)?
software that controls a computer’s core functions and allows interaction with computer programs.
What are the two main functions of an OS?
- Abstract Interface
- Resource Manager
What is a Processor?
The brain of a computer.
What does a Program Counter (PC) point to?
The next Instruction.
What does the stack pointer (SP) point to?
The top of the current stack.
What is the difference between Kernel mode and User mode?
KM executes any instruction in the instruction set, while UM only executes a subset of instructions.
A request by a user program to the OS to perform a task on its behalf, via software, is called …….
System Call
What are the steps for an interrupt?
- state of process is saved
- CPU switches to kernel mode
- Find the interrupt handler in the interrupt vector table (IVT)
- Execute interrupt handler
- Control of CPU returned to the process.
What are the 2 sections of memory?
- Code (typically static)
- Data (volatile)
When it comes to memory what is a base ?
start location
When it comes to memory what is a limit?
The range of legal memory address the proces can access.
A chip or set of chips that accepts commands from OS is called a …..
controller
The software that “talks” to the controller is called a …..
device driver
What are 3 ways to invoke device actions?
- busy wait
- DMA
- interrupt
Busy Wait is when you……..
execute a kernel level system call, and the wait ties up processor.