OS Flashcards
sharing resources across users/programs by taking turns(time share)
Multiplexing
sharing resources by dividing them up (space share)
Space multiplexing
_____ connects the CPU/memory/I/o devices
System bus
software that runs in kernel mode (mostly). It manages all the hardware and provides programmers an interface to manage hardware. They have a user mode and kernel mode
- Processes
- Memory management
- I/o device management
Operating system (OS)
Processors (CPU) fetches instructions from memory and runs it. They have registers. Can execute more than one command at a time using a pipeline.
What are the 3 main steps that repeat?
-fetch
-decode
-execute
____ fetches instructions from memory and runs it
Processors
they store data locally to speed up processing
Registers
A type of register. memory address of next instruction to fetch
Program counter
(register) - points to the current stack in memory. Holds input parameters, local variables, and temp variables that are not kept in general registers.
Stack pointer
User programs run in ______ (which can only use a subset of the available instructions)
user mode
a user program makes a _______ ____ to invoke the OS
system call
____ allows the CPU to hold the state of different threads and switch back and forth at a nanosecond time scale
Hyperthreading
Memory Types
These are in order of fastest to slowest:
- Registers (no delay in access)
- Cache (L1/L2)
- Main memory
- SSD/hard drive
____ _____ have a penalty of tens to hundreds of cycles when being accessed.
Cache misses
Which cache is faster? L1 or L2?
L1
is faster, but also much smaller in size (8 KB to 64 KB)
Located on the processor chip