Midterm review Flashcards
What does the CPU do
Data processing and operation of computer
What is RAM?
Real or primary memory
It is wiped on power down (Volatile)
Much faster than secondary storage, much slower than cache
What are the components of a CPU connected by?
The system bus
Why is cache the fastest form of memory
It is directly inside the CPU (Locality principle). It does not need to be accessed via system bus
Instruction execution?
- Os loads program into memory
- Instructions are fetched and executed one at a time
- Fetch, then execute
What are interrupts
A result of an external device requesting attention
What recieves an interrupt
The interrupt request channel
How does the processor handle checking for interrupts
It adds an interrupt check stage after the execute stage
If we are in the fetch or execute stage, the interrupt has to _____
Wait bitch
As you go down the memory hirearchy, what happens?
Decreasing cost per bit
Increasing capacity
Increasing access time
Decreasing frequency of access by the processor
What does the OS act like?
A user/computer interface
A program
What are the two modes of operation?
User mode and kernel mode
What is user mode?
User programs execute in this mode
Certain areas of memory and instructions are protected and may not be executed
What is kernel mode?
The monitor executes in kernel mode
Privilledges instructions may be executed here, and the protected memory can be accessed
What is uniprogramming
The processor spends time executing until it reaches an I/O instruction
It then waits for that instruction to conclude before resuming work
It’s very slow -.-
What is multiprogramming
PRocessor spends time on multiple programs while waiting for interrupts
As long as we have space in memory we can load more programs to maximize CPU usage
What is a process?
A program in execution / an instance of a running program
What is a trace?
a process being executed
Seven stages of the seven state model
New process Admit - goes to READY Dispatch - goes to RUNNING if it times out it goes back to ready if it releases then goes to EXIT Event wait - goes to BLOCKED Event occurss during this - back to ready Takes too long - goes to SUSPENDED and then back to ready eventually
Processes have two characteristics:
Resources ownership
Schedules and execution
What is resources ownership
One unit of this is reffered to as a process or task
Resources allocated at process level
What is schedules and execution
A unit of this is called disbatching, or a thread, or a lightweight process
What is multithreading?
When an OS can support multiple paths of execution within a single process
KLTs?
Kernel level threads