slr4 - operating systems Flashcards
What is the purpose of the operating system
Create an interface for the user to interact with hardware
How do computers handle multitasking
Each program is given a small amount of time to execute an instruction before it switches to another program
What is the purpose of user management
Allows multiple users to log on to the same computer
The OS will save settings as well as controlling what files they can access
What is a WIMP interface
An interface that features windows, icons, menus and pointers
What is the role of a scheduler
Managing which process to execute next and how long it shoud execute for
What are the 5 scheduling algorithms
First Come First Served (FCFS)
Shortest Job First (SJF)
Shortest Remaining Time (SRT)
Multi-Level Feedback Queue (MLFQ)
Round Robin
Describe FCFS
Processes are executed in the order that they arrive in the queue
They are executed until they are completed
Describe SJF
Picks the process with the least time remaining and runs it until it is finished
Describe the round-robin scheduling algorithm
Each program is given the same amount of time to run before exiting the CPU
Describe the SRT scheduling algorithm
The program with the least amount of time is selected however it is pre-emptive so can suspend currently running programs if one with a shorter time becomes available
Describe process blocking
When a process requires certain conditions, it is put into a blocked state until the conditions are met
Describe MLFQ
When multiple queues are used for different cores
What are the 2 methods of dividing programs stored in RAM
Paging and segmentation
Describe Paging
Programs are split into pages of fixed sizes
Give a disadvantage of paging
It doesn’t account for how the program is split. this could mean that the program runs less efficiently
Describe segmentation
Programs are split into logical divisions
What is virtual memory
When the OS uses secondary storage to store programs instead of RAM
what is an interrupt
When another process signals to the processor that it wants attention
What is the ISR
The intercept service routine is a program with its own set of instructions that need to be fetched, decoded, and executed to carry out the interrupt
What does the contents of the program counter need to be changed to at the start of an interrupt
The address of the interrupts first instruction
What happens to the values stored in registers after an interrupt is received
The values are pushed into a stack
What happens to the stack after the interrupt is completed
The frame of the stack is “popped” off, meaning that all the original values are retrieved and loaded back into the necessary registers
Give some examples of high priority interrupts
PSU failure
Moving the pointer
Arithmetic overflow
What are the 5 types of operating system
Multitasking
Multi-user
Distributed
Embedded
Real-time
Describe a multitasking operating system
An OS that allows multiple programs to be run at the same time
Describe a multi-user operating system
An OS where multiple people can log on to the same computer and the computer will save settings and manage permissions
Describe a distributed OS
An OS that controls and coordinates computers connected over a network
Describe an embedded operating system
An OS that runs on dedicated hardware that runs with maximum efficiency and little processing power to complete a single task
Describe a real time operating system
An OS designed for safety-critical applications that guarantee a specific maximum response time for critical tasks
Where are bios setting stored
Flash memory so that settings can be saved
What is the kernel
The kernel provides an interface between the hardware and software components of the computer
What is a device driver
Software that tells the OS how to communicate with a device
What is a virtual machine
A program that has the same functionality as a physical computer, e.g. emulators
What is a generic application
A program that can be used to carry out different tasks
What is a specific application
A program that has little or no use outside of its dedicated purpose
What is utility software
Software designed to:
Keep your computer safe
Keep it running efficiently
Provide you with useful tools
Give some examples of utility software
File repair
Backup
Compression
Defragmentation
Anti-malware
File management
Device drivers
Describe file repair software
Software that tries to correct issues with damaged files
Describe backup software
Software that automatically creates copies of files
Describe compression software
Software that reduces the size of a file and software that can unzip compressed files
What is defragmentation
The process of reorganizing files on a hard disk so that fragments of files and free space are together
What is open source software
Software that is free and can be edited by anyone
What is proprietary software
Software that is owned by an individual or business
What are the advantages to the user of open source software
It is free
Has lots of customisation options
What are the disadvantages to the user of open source software
May be poorly supported
Feature may not be fully tested
What are the disadvantages to the creator of open source software
Little or no financial gain
What are the advantages to the user of closed source software
Well supported
What are the disadvantages to the user of closed source software
May cost money
Advantage of RR
Prevents certain tasks never being executed