1.2.1 Systems software Flashcards

1
Q

what is an operating system?

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 are the functions of an operating system?

A
  • memory management
  • resource management
  • input/output management
  • interrupt management
  • security
  • user interface
  • utility software
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is paging?

A

when main memory is split physically into equal sections

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

what is segmentation?

A

when main memory is split logically into variable sizes

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

what are similarities between paging and segmentation?

A

-both used when RAM space is insufficient
-can cause disk thrashing

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

what is virtual memory?

A

a memory management technique that allows a computer to use a portion of it’s hard drive as if it were RAM

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

what is virtual memory used for?

A

-temporarily moves sections of programs not currently being used
-frees up memory for other programs in RAM

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

what is an interrupt?

A

an instruction that has high priority so it stops the current FDE cycle from being completed.

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

what are the stages of the interrupt
service routine (ISR)?

A

-interrupt register checked at the end of each FDE cycle
-if interrupt has a higher priority to the current instruction, the current contents of the registers in the CPU are transferred into a stack
-interrupt is completed using the FDE cycle
-interrupt register checked again
-if interrupts are of a higher priority, they will be put at the top of the stack to be completed first
-if there are no interrupts with a higher priority, the contents of the stack are popped and place back into the special memory registers
-the FDE cycle renews as before

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

what are the types of operating system?

A

-distributed
-real time
-multi-tasking
-multi-user
-embedded

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

what is a distributed operating system?

A

coordinates communication between many individual computers but it appears to be one system to the end user

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

what is an embedded operating system?

A

used in computers that serve a specific purpose
(washing machines)

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

what is a multi-tasking operating system?

A

manages the computer’s resources to provide the illusion to the user that it is possible to switch between tasks
(laptops- working on a document while listening to music)
(a single core computer can only run one application at a time, but the OS can switch between tasks quickly to make it look like multiple tasks are running simultaneously)

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

what is a multi-user operating system?

A

provides the facilities for multiple users to access the same system
(supercomputers)

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

what is a real-time operating system?

A

processes data within a guaranteed amount of time
(medical devices- heart rate monitors)

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

what are the functions of the BIOS (Basic Input Output System)?

A

-POST (Power On Self Test) which ensures that all hardware is correctly connected and functional
-checking the CPU clock, memory and processor
-testing for external memory devices

17
Q

what is the use of a device driver?

A

enables the operating system to interact with hardware devices

18
Q

what is a virtual machine?

A

a software-based computer that acts like a physical computer, but is only a digital representation of one

19
Q

why are virtual machines used?

A

-testing programs
-protection from malware
-running software compatible with different versions and types of operating systems

20
Q

what is scheduling?

A

allocating time slots for instructions to be completed

21
Q

what are the types of scheduling?

A

-first come first served
-round robin
-shortest remaining time
-shortest job first
-multilevel feedback queue

22
Q

what are the benefits of scheduling?

A

-increases efficiency
-reduces bottle neck
(instructions completed one at a time)

23
Q

what is first come first served?

A

processes are completed in the order which the processor receives them
-simplest method to implement
-long wait times

24
Q

what is round robin?

A

-processor time is divided equally among all running tasks (time slice)
-if process hasn’t finished when time slice is up, it stops running and the computer switches to the next process
-the suspended process will only resume running when it is next allocated processor time
-ensures every task is allocated processor time
-short wait times
-more processes running -> smaller time slice for each process, more urgent tasks are less likely to be completed quickly

25
Q

what are benefits of round robin?

A

-ensures every task is allocated processor time
-short wait times

26
Q

what are drawbacks of round robin?

A

-more processes running means smaller time slice for each process
-more urgent tasks are less likely to be completed quickly

27
Q

what is shortest remaining time?

A

-the processes with the shortest time to completion go first
-until a different task is added with a shorter time to completion, which then takes priority
(different to the shortest job first as a long job which is mostly complete may have a very short time remaining, so it would prioritised)

28
Q

what are benefits of shortest time remaining?

A

-reduced processing time

29
Q

what are drawbacks of shortest time remaining?

A

-starvation

30
Q

what is shortest job first?

A

the shortest instructions are completed first
-reduces wait times
-however can lead to starvation because longer instructions may not get completed

31
Q

what are multilevel feedback queues?

A

-uses queues of tasks, where each queue has a different level of priority
-processes are chosen from different queues based on priority and how much processing time each process has already had
-initially, processes are added to a queue with a certain level of priority
-if a process uses too much CPU time, it is moved to a lower priority queue
-if a process has been idle for a long time, it is moved to a higher priority queue
-processes that depend on input/output devices require a lot of processing time, so they are kept in high priority queues
-processes that are quick to complete are served first

32
Q

what are benefits of multi level feedback queues?

A

-all tasks are given processor time
(avoids starvation)
-more important jobs are dealt with sooner
-queues become more balanced the more tasks are processed, ensures no single high priority task dominate the processor’s time

33
Q

what are drawbacks of multi level feedback queues?

A

-the most complex algorithm
-CPU intensive