Section 2: Systems Software Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an OS?

A

A program that manages computer operation. (Essentially a bridge between user and hardware).

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

Where is the OS stored?

A

Permanent Storage (i.e. a HDD)

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

What is a loader?

A

A loader is a small program (held in ROM) that sends instructions to copy the OS to RAM. This happens during boot-up.

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

What are the main functions of an OS?

A
  • Memory Management
  • Interrupt Service Routines (ISR’s)
  • Processor Scheduling
  • Backing Store Management
  • Management of all I/O.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is memory management?

A

Where the OS handles allocation of memory and management of space, using techniques such as paging and segmentation.

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

What is paging?

A
  • Memory is split into fixed page sizes (eg 4kb)

- A program may be held in non-contiguous pages.

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

What is a page table?

A

A page table uses mapping to store a link between the physical memory address and the logical memory address.

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

What is segmentation?

A

The logical division of address space into varying length segments.

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

What is Virtual Memory?

A

Where the OS swaps pages to secondary storage.

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

Processor time is consumed during the swap. If a computer is spending a large amount of time swapping files a performance drop will be noticeable since more time is spent swapping than on program tasks.

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

What is an Interrupt?

A

A signal from a software program, hardware device or CPU internal clock.

INTERRUPTS ENABLE MULTI-TASKING!

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

When does an Interrupt occur?

A

When an application program terminates or requires access to the OS services e.g. a printer out of paper.

It may also occur from a timer, to move the CPU onto the next process.

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

What happens when the CPU receives an interrupt signal?

A
  • It suspends execution of the current process and disables all lower priority interrupts.
  • The values of the PC and other registers are put into a system stack, whilst the ISR is called to deal with the Interrupt.
  • Dependant on the Interrupt type, a particular routine may be ran to service it.
  • Once finished, the values are taken from the stack and put back into the CPU.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is special about Interrupts?

A

They have priorities. A low priority interrupt may be disabled if a higher priority is being serviced.

An example order is:

1) Power Fail Interrupt
2) Clock Interrupt
3) I/O device requests

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

What is processor Scheduling?

A

The Where the OS queues tasks for max efficiency.

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

What is multi-tasking?

A

Where the processor carries out small parts of each major task in turn, so it looks like it is carrying out several tasks simultaneously. This is because one processor can only carry out 1 task at a time.

17
Q

What is a Schedular?

A

Part of the OS responsible for ensuring processor time is used as efficiently as possible.

18
Q

What are the main requirements of the Schedular?

A
  • Maximise Throughput
  • Be fair to all multi-system users
  • Provide acceptable response time
  • Ensure hardware is kept as busy as possible.
19
Q

Explain the Round Robin Algorithm:

A

Each process is dispatched on a FIFO basis, each with a limited time slice (quantum).

The dispatcher gives the CPU the next process if the time expires or a high level Interrupt comes in.

An internal timer/interrupting clock generates this interrupt at specific times.

20
Q

What does Round Robin guarantee?

A

A reasonable response time to all users.

21
Q

Explain the First Come First Served Algorithm:

A

Jobs are processed in the order they come, with no system priorities.

22
Q

Explain the Shortest Remaining Time Algorithm:

A

Process with the shortest estimated time to complete run next.

This reduces the number of waiting jobs and the amount of small jobs behind big jobs.

Requires knowledge of how long a job will take, so job time needs to be estimated. Suitable for jobs such as payroll.

23
Q

Explain the Shortest Job First Algorithm:

A

Similar to shortest remaining time. For example, on a university campus, short programs will be ran quickly at peak usage times as opposed to large research projects.

24
Q

Explain the Multi Level Feedback Queue:

A
  • Gives preference to short jobs.
  • Gives preference to I/O bound processes.
  • Separates process into categories based on their needs.

Several queues are implemented and jobs may move between them, dependent on processing time.

25
Q

Why must I/O device be kept as busy as possible?

A

I/O is slower than processor speed so by keeping it as busy as possible, bottlenecks don’t occur when multiple processes request access.

26
Q

Define Backing Store Management:

A

This is where the OS keeps a directory of where everything is stored, so it can be quickly accessed. It also knows which areas are free so new applications can be saved.

This is important because as a program is loaded, they are transferred from backing storage to memory.

27
Q

What is Peripheral Management:

A

Different applications require different I/O throughout their operation. A buffer is used to compensate for the difference between the I/O device and CPU.

28
Q

What are the different types of OS?

A
  • Distributed OS

-