slr4 - operating systems Flashcards

1
Q

What is the purpose of the operating system

A

Create an interface for the user to interact with hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do computers handle multitasking

A

Each program is given a small amount of time to execute an instruction before it switches to another program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of user management

A

Allows multiple users to log on to the same computer
The OS will save settings as well as controlling what files they can access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a WIMP interface

A

An interface that features windows, icons, menus and pointers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the role of a scheduler

A

Managing which process to execute next and how long it shoud execute for

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 5 scheduling algorithms

A

First Come First Served (FCFS)
Shortest Job First (SJF)
Shortest Remaining Time (SRT)
Multi-Level Feedback Queue (MLFQ)
Round Robin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe FCFS

A

Processes are executed in the order that they arrive in the queue
They are executed until they are completed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe SJF

A

Picks the process with the least time remaining and runs it until it is finished

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe the round-robin scheduling algorithm

A

Each program is given the same amount of time to run before exiting the CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Describe the SRT scheduling algorithm

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe process blocking

A

When a process requires certain conditions, it is put into a blocked state until the conditions are met

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Describe MLFQ

A

When multiple queues are used for different cores

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the 2 methods of dividing programs stored in RAM

A

Paging and segmentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Describe Paging

A

Programs are split into pages of fixed sizes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Give a disadvantage of paging

A

It doesn’t account for how the program is split. this could mean that the program runs less efficiently

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe segmentation

A

Programs are split into logical divisions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is virtual memory

A

When the OS uses secondary storage to store programs instead of RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

what is an interrupt

A

When another process signals to the processor that it wants attention

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the ISR

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What does the contents of the program counter need to be changed to at the start of an interrupt

A

The address of the interrupts first instruction

21
Q

What happens to the values stored in registers after an interrupt is received

A

The values are pushed into a stack

22
Q

What happens to the stack after the interrupt is completed

A

The frame of the stack is “popped” off, meaning that all the original values are retrieved and loaded back into the necessary registers

23
Q

Give some examples of high priority interrupts

A

PSU failure
Moving the pointer
Arithmetic overflow

24
Q

What are the 5 types of operating system

A

Multitasking
Multi-user
Distributed
Embedded
Real-time

25
Describe a multitasking operating system
An OS that allows multiple programs to be run at the same time
26
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
27
Describe a distributed OS
An OS that controls and coordinates computers connected over a network
28
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
29
Describe a real time operating system
An OS designed for safety-critical applications that guarantee a specific maximum response time for critical tasks
30
Where are bios setting stored
Flash memory so that settings can be saved
31
What is the kernel
The kernel provides an interface between the hardware and software components of the computer
32
What is a device driver
Software that tells the OS how to communicate with a device
33
What is a virtual machine
A program that has the same functionality as a physical computer, e.g. emulators
34
What is a generic application
A program that can be used to carry out different tasks
35
What is a specific application
A program that has little or no use outside of its dedicated purpose
36
What is utility software
Software designed to: Keep your computer safe Keep it running efficiently Provide you with useful tools
37
Give some examples of utility software
File repair Backup Compression Defragmentation Anti-malware File management Device drivers
38
Describe file repair software
Software that tries to correct issues with damaged files
39
Describe backup software
Software that automatically creates copies of files
40
Describe compression software
Software that reduces the size of a file and software that can unzip compressed files
41
What is defragmentation
The process of reorganizing files on a hard disk so that fragments of files and free space are together
42
What is open source software
Software that is free and can be edited by anyone
43
What is proprietary software
Software that is owned by an individual or business
44
What are the advantages to the user of open source software
It is free Has lots of customisation options
45
What are the disadvantages to the user of open source software
May be poorly supported Feature may not be fully tested
46
What are the disadvantages to the creator of open source software
Little or no financial gain
47
What are the advantages to the user of closed source software
Well supported
48
What are the disadvantages to the user of closed source software
May cost money
49
Advantage of RR
Prevents certain tasks never being executed