SLR4 Flashcards
What does the operating system allow the user to do
Talk to the hardware
What does application software do
Talk to a specific application. E.g. Word, PowerPoint.
What is a utility Program
A program designed to protect your computer from malware
What is multitasking
When a computer is running multiple programs at the same time
How does a computer handle multitasking
A processor allocates a small amount of time to each program and as it happens so quickly it appears instant
Where in a computer is data stored
In files
How does the operating system know which type of application a file is
There is an extension at the end of the file name declaring what it is
Name 3 benefits of having user management
- Having multiple users on one machine
- Having a roaming machine
- Each user has a different access ability
What are the two main ways of having memory management
Paging & Segmentation
What are the 4 main traits of paging
- All pages are a fixed-size
- Pages are physical divisions
- Could separate instructions making the code inefficient
- It is better to keep the instructions together
What are the 3 main traits of segmentation
- Segments are different sizes
- Segments are logical divisions
- Can lead to small amounts of memory unallocated
What is it called when a device requires the processor’s attention
An interrupt
What will the processor do if an interrupt presents a problem
The processor will stop executing its current instruction and focus on the interrupt
How does a processor handle an interrupt
The processor will activate the interrupt service routine
What is the interrupt service routine
A program with a set of instructions that need to be fetched, decoded, and executed to continue
What happens to the current process when an interrupt is received
The current process gets moved into the stack which stores the contents of the registers
Why do we have interrupts
Other devices may require the CPUs attention and their priority is greater than the current instruction
Give the 5 types of interrupt and an example of each
- Hardware (Power)
- Timer (screen record)
- Input / output (USB)
- User (mouse)
- Software (illegal instruction)
What happens when the interrupt is complete
The original instruction is popped back off the stack into the registers to be executed
What does a scheduler manage
Which process to execute next and how much time to spend on it
How is time messured in a computer
In ticks
What does running state mean
Running state is when a process is running
How does a process get to the CPU
A process will enter the queue and once it reaches the front of the queue it will enter the CPU
What happens if the process is blocked
This means that the user is required to input something
What happens when a process in the CPU takes more time than the allocated number of ticks
The process gets suspended and rejoins the back of the queue until it re-enters the CPU