1.2.1 Systems Software Flashcards

You may prefer our related Brainscape-certified 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

Give 3 functions of an Operating System:

A

Three from:

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

Paging: Uses equal-sized sections called pages

Segmentation: 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 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
6
Q

Explain the stages of the Interrupt Service Routine:

A
  • Interrupt register checked at the end of each FDE cycle
  • If there is an interrupt that exists with a higher priority, the current contents of the registers in the CPU are transferred into a stack
  • The relevant interrupt service routine (ISR) is loaded into RAM
  • A flag is sent to signal the ISR has begun
  • The flag is reset once the ISR is finished
  • Interrupt register checked again. If interrupts are of a higher priority, the process is repeated
  • If there are no interrupts with a higher priority, the contents of the stack are popped and placed 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
7
Q

Which scheduling algorithms are preemptive and which ones are non-preemptive?

(First come first serve, shortest remaining time, shortest job first, multi-level feedback queues, round robin)

A

Preemptive: RR, SRT, MLFQ

Non-preemptive: FCFS, 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 Multi-Level Feedback Queues for scheduling?

A

Advantage: Services most urgent interrupts first

Disadvantage: 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

Perform tasks within a guaranteed time frame (critical).

Examples include life support systems, self-driving cars, etc.

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

Define three functions of BIOS

A
  • POST (power on self test) which ensures that are hardware is correctly connected and functional
  • Checking the CPU a lock, 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

Enable the 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 a VM may be used:

A

Any from:

  • 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 one disadvantage of intermediate code:

A

Advantage: Platform independent, portable

Disadvantage: Slower execution

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

Define Pre-emptive:

A

OS that actively start and stop jobs

eg. Multi-Level Feedback Queues, Shortest Remaining Time, Round Robin

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

Define Non Pre-emptive:

A

Once a job starts, the OS leaves it alone until it’s completed

eg. First Come First Served, Shortest Job First

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