1.2.1 system storage Flashcards

os, interrupt, scheduling, types of os, bios, device drivers, virtual machines

1
Q

what does the operating system refer to?

A

a collection of programs that work together to provide an interface between the user and computer

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

what do operating systems allow the user to do?

A

communicate with the computer and perform certain low level tasks involving the management of computer memory and resources

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

what does os provide?

A

memory management
scheduling
file management
i/o management
interrupt management
utility software
security
user interface

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

what roles do memory management in the os include?

A

paging, segmentation and virtual memory

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

what is paging?

A

when memory is split up into equal sized sections called pages

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

how does paging work?

A

programs are being made up of a certain number of equally sized pages they can be swapped between main memory and the hard disk as needed

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

what is segmentation?

A

splitting up of memory into logical sized divisions called segments which vary in size

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

what is the key issue with vm?

A

disk thrashing

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

what is disk thrashing?

A

the computer freezes because of pages being swapped too frequently between hard disk and main memory

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

what are interrupts?

A

signals generated by software or hardware to indicate to the processor that a process needs attention

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

how are interrupts stored?

A

in order of priority within an abstract data called a priority queue in the interrupt register

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

when does the CPU check the contents of the interrupt register?

A

at the end of FDE

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

what is the ISR?

A
  1. if an interrupt in the interrupt register has a higher priority of the process being executed, the contents of the special purpose registers are temporarily transferred into a stack
  2. the CPU responds to the interrupt by loading the appropriate ISR into RAM
  3. a flag is set to signal the ISR has begun
  4. once the interrupt has been serviced, the flag is reset
  5. the interrupt queue is checked again for further interrupts of a higher priority to the process that was originally being executed
  6. if there are, it is repeated until they are all serviced
  7. if there isn’t the contents of the stack are transferred back into the registers in memory
  8. FDE resumes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is scheduling?

A

ensuring that all sections of programs being run (jobs) receive a fair amount of processing time

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

what are the two types of scheduling algorithms?

A

preemptive
non preemptive

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

what is a preemptive scheduling algorithm?

A

jobs are actively made to start and stop by the OS

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

what are the preemptive algorithms?

A

multilevel feedback queues
shortest remaining time
round robin

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

what is a non preemptive algorithm?

A

once a job has started it is left alone until its completed

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

what are the non preemptive algorithms?

A

first come first served
shortest job first

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

what is the round robin scheduling algorithm?

A
  1. each job is given a section of processor time (time slice) within which it is allowed to execute
  2. once each job has used its first time slice, the OS grants another time slice to each job
  3. this is repeated until a job has been completed and then removed from the queue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

what are the disadvantages of round robin?

A

longer jobs will take a much longer time for completing (their execution is inefficiently split up into multiple cycles)
does not take into account job priority

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

what are the advantages of round robin?

A

easy to implement and understand (only requires a simple queue and timer)
fair and equitable preventing starvation

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

what is the FCFS scheduling algorithm?

A

jobs are processed in chronological order by which they entered the queue

24
Q

what are the advantages of FCFS?

A

easy to implement

25
what are the disadvantages of FCFS?
does not allocate processor time based on priority
26
what is the multilevel feedback queues scheduling algorithm?
makes use of multiple queues, which are all ordered based on priority
27
what are the disadvantages of multilevel feedback queues?
difficult to implement because it has to decide which job to prioritise
28
what are the advantages of the multilevel feedback queue?
orders based on priority
29
what is the shortest job first scheduling algorithm?
the queue is ordered according to time required - longest at end
30
what are the disadvantages of shortest job first?
it requires the CPU to know how long each job will take (not always possible) risk of starvation if short jobs keep getting added to the queue
31
what are the advantages of the shortest job first?
most suited to batch systems maximises system throughput
32
what is the shortest remaining time scheduling algorithm?
the queue storing jobs to be processed is ordered according to the time left for completion - least time serviced first
33
what are the disadvantages of shortest remaining time?
risk of processor starvation for longer jobs if lots of shorter jobs are added to the queue
34
what are the advantages of shortest remaining time?
faster than SJF
35
what does BIOS stand for?
basic input output system
36
what is a bootstrap / bootloader?
the name given to the program that loads the OS from hard disk to main memory
37
what are the tests that the BIOS are responsible for?
-POST which ensure that all hardware are correctly connected and functional -checking the CPU clock, memory and processor are operational -testing for external memory devices connected to the computer
38
what does POST stand for?
power on self test
39
what actually is the BIOS and when is it used?
the PC points to it every time it starts up because it completes the various key tests before the OS starts up - the first program executed when a computer is switched on
40
what are device drivers?
programs which are provided by the OS and allow the OS to interact with hardware
41
what is a virtual machine?
a theoretical computer that is a software implementation of a computer system
42
what do virtual machines provide?
an environment with a translator for immediate code to run
43
what are virtual machines commonly used for?
to create a development environment for programmers to test programs on different OS
44
what are the advantages of using virtual machines for testing?
saving time and money of having to purchase devices solely for testing
45
what are the disadvantages of using virtual machines for testing?
considerably slower
46
what are the other uses of virtual machines?
protection from malware running incompatible software
47
why would you use a virtual machine for protection from malware?
malware would affect the virtual machine not the device being used
48
why would you use a virtual machine for running incompatible software
programs specific to different OS/different versions of OS can be run with a virtual machine, saving time and money to purchase hardware
49
what is a distributed OS?
an OS that will run across multiple devices allowing the load to be spread across multiple processors when a task is run
50
what is an embedded OS?
catered towards a specific device, built to perform a small range of specific tasks
51
what is the advantage of an embedded OS?
significantly less power used
52
what are the disadvantages of an embedded OS?
limited functionality hard to update
53
what is a multi tasking OS?
enables the user to carry out tasks simultaneously, using time slicing to switch quickly between programs and applications in memory
54
what is a multi user OS?
multiple users make use of one computer (typically supercomputer) - a scheduling algorithm must be used
55
what is a real time OS?
used in time critical systems - designed to complete tasks within a guaranteed time frame