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 the computer.

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

Give 3 functions of an operating system

A
  • Memory management
  • Resource management
  • I/ O 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 are the similarities and differences between paging and segmentation?

A

Both: are used when RAM space is insufficient, can cause disk thrashing
P: uses equal-sized sections called pages
S: uses variable-sized, logical sections called segments

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

Describe how virtual memory is used when there is not enough RAM

A

A section of the hard drive is used to act as RAM
Sections of programs not currently being used are temporarily moved into virtual memory through paging
This frees up memory for other programs in RAM

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

What is an interrupt?

A

A signal generated by hardware or software 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
6
Q

Explain the stages of the Interrupt Service Routine

A
  • Interrupt register checked at end of each FDE cycle
  • If there’s an interrupt existing with a higher priority to a current priority, the current contents in CPU transferred into stack
  • The relevant ISR is loaded into RAM and flag reset once ISR finished
  • Interrupt register checked again. If interrupts are of a higher priority, process repeated
  • If there are none, contents of stack are popped and place back into the special memory registers
  • FDE cycles renews as before
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Are these scheduling algorithms pre-emptive or non pre-emptive? FCSF, SRT, SJF, MLFQ, RR

A

Pre-emptive: RR, SRT, MLFQ
Non pre-emptive: FCSF, SJF

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

What are the advantages and disadvantages of using Multilevel Feedback Queues for scheduling?

A

A: services most interrupts first
D: hard to implement

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

Define a real-time operating system and when it may be used

A

Real- time OS perform a task within a guaranteed time frame. They are used in systems where a response within a given time frame is critical

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

Describe three functions of BIOS

A
  • POST (power on self test) which ensures that all hardware is connected correctly and functional
  • Checking the CPU clock, memory and processor
  • Testing for external memory devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the role of a device driver?

A

Enables OS to interact with hardware devices

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

Describe an instance in which virtual memory is used

A
  • Testing programs
  • Protection from malware
  • Running software compatible with different versions and types of OS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Give one advantage and disadvantage of intermediate code

A

A: platform independent, portable
D: slower execution

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