1.2.1 System Software Flashcards

1
Q

What is an OS?

A

Operating System. A program or set of programs that manage the computers hardware and interactions with the user

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

What are the functions of the operating system?

A

Providing a user interface
Managing the CPU, scheduling, and interrupts
Managing memory and storage allocation
Managing hardware and peripherals
Managing user permissions and account information
Providing utilites and libraries

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

What is paging?

A

Splitting memory into equal fixed size chunks/units/blocks

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

What is segmentation?

A

Splitting memory into variable sized chunks/units/blocks

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

What is a logical address?

A

The position of a page/segment within a program

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

What is a physical address?

A

The position of a page/segment in memory

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

Why is memory management important?

A

Security - Memory is reserved for each progra and cannot be overwritten by other programs
Multitaksing - Allows multiple programs to run at once

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

Explain how virtual memory works?

A

Memory contents are divided into pages or segments.
If RAM is full,
then pages or segments not currently in use will be moved to an area in storage called virtual memory to make room.
When the pages or segments are needed, they are moved back to memory again.

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

What is an advantage of virtual memory?

A

Makes room in RAM

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

What is a disadvantage of virtual memory?

A

It’s slower to acces pages/segments in virtual memory than pages in RAM.
Extra processing time involved in moving pages/segments.

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

What is an interrupt?

A

A signal to the processor indicating that a device/process needs attention.

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

What is an ISR?

A

Interrupt Service Routine. A program that is run when an interrupt happens.

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

What are the three reasons for an interrupt?

A

Power Failure
Clock interrupt (scheduled)
Input/Output device signal

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

How are interupts handled in the FDE cycle?

A

When the computer completes an FDE cycle
it will check the priority of the interrupt.
If the interrupt is a higher priority then the current tasks, then the current contents of all registers will be stored in the stack in memory.
The relevant inerrupt service routine is then loaded by placing the address of the first instruction in the Program Counter.
When the ISR is complete, the previous state is popped from the stack and loaded back into the registers.
If a higher priority interupt arrives while completing the ISR that will be added to the stack and the new interrupt will be dealt with.

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

What are the five main scheduling algorithms?

A

Round robin
First come first served
Shortest job first
Shortest remaining time
Multi-level feedback queues

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

How does the round robin scheduling algorithm work?

A

Processes are allocated a fixed slice of CPU time and are cycled through in the order that they arrived, switching processes at the end of each time slice or when a higher priority interrupt arrives.

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

What is a disadvantage of the round robin scheduling algorithm?

A

Extra time is spent switching jobs

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

What are the advantages of the round robin scheduling algorithm?

A

No risk of starvation.
Easy to adapt to prioritise tasks by allowing high priority tasks to have multiple time slices per cycle.

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

How does the first come first served scheduling algorithm work?

A

Processes are executed in the order that they arrive with no system of priorities

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

What are the advantages of the first come first served scheduling algorithm?

A

No extra processing is used
No risk of starvation

21
Q

What is the disadvantage of the first come first served scheduling algorithm?

A

Important jobs may be left waiting for too long

22
Q

How does the shortest job first scheduling algorithm work?

A

The process with the smallest estimated running time is run first.

23
Q

What is the advantage of the shortest job first scheduling algorithm?

A

Reduces the number of jobs waiting

24
Q

What are the disadvantages of the shortest job first algorithm?

A

Requires extra processing for time estimation.
Can cause starvation

25
Q

How does the shortest remaining time scheduling algorithm work?

A

The process with the smallest estimated remaining time is run first.

26
Q

What is the advantage of the shortest remaining time scheuling algorithm?

A

Reduces the amount of waiting jobs

27
Q

What are the disadvantages of the shortest remaining time scheduling algorithm?

A

Requires extra processing for time estimation
Can cause starvation

28
Q

How do multi-level feedback queue scheduling algorithms work?

A

Multiple queues are set up based on process length, input/output device use, and processor use.
Each queue schedules based on its own priority syste.
Processes might move between queues

29
Q

What is the advantage of multi-level feedback queues?

A

Most effient use of devices which are often a bottleneck, since input/output opperations are slower than processor ones.

30
Q

What is the disadvantage of multi-level feedback queues?

A

Lots of extra processing involved

31
Q

Why is scheduling important?

A

Efficiency - maximise the thoughput of the processor and harware devices
Fairness - Provide an acceptable responce time for all users on a multi-user system

32
Q

What are the five main types of operating systems?

A

Distributed, emedded, multi-tasking, multi-user, real time

33
Q

What are the characteristics of the distributed operating system?

A

Multiple computers can work together on a single task.

34
Q

What are the characteristics of an embedded operating system?

A

It is specialised to one task and for the hardware it is running on.
It is normally stored in ROM instead of the BIOS.

35
Q

What are the characteristics of a multi-tasking operating system?

A

Can run multiple programs at the same time.

36
Q

What are the characteristics of a multi-user operating system?

A

Allows multiple users at the same time

37
Q

What are the characteristics of a real time operating system?

A

Guarenteed fast response time
for multiple simultanious inputs.
Inforportates failsafes to detect failures and switch to redundant systems.

38
Q

What does BIOS stand for?

A

Basic Input Output System

39
Q

What does the BIOS do?

A

Load/boot the OS
Perform initial checks on the computer hardware to ensure it works when the computer is turned on
Set up the initial state of the computer

40
Q

What is a virtual machine?

A

Software that simulates one operating system while running on a different operating system.

41
Q

What are the advantages of using a virtual machine?

A

Code can be tested on multiple platforms without needing the physical devices.
Malware can be run on the virtual machine without putting the physical machine at risk.

42
Q

What are the disadvantages of using a virtual machine?

A

Slower, because less memory, storage and CPU power are availible.
Performance can be unstable if hardware requirements are not met.

43
Q

What is utility software?

A

Programs that help the OS with the basic functioning of the computer

44
Q

Give three examples of utility software.

A

Any from:
Encryption, Defragmentation, Compression, Backup, Driver

45
Q

What do encryption utilities do?

A

Scrambles the data in files using a key to obscure their meaning from unauthorised parties.

46
Q

What do defragmentation utilities do?

A

Organises files conigiously in secondary storage to decrease loading times.

47
Q

What do backup utilities do?

A

Make regular coppies of files to prevent them from being lost.

48
Q

What do device driver utilities do?

A

Enable communication between the OS and a hardware device.