1.2.1 - Systems Software Flashcards

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

What is systems software?

A

Programs that control the hardware and operation of the computer system.

1- Acts as an interface between the processor and the user and makes the hardware useable by the operator.

2- Gives a platform to run and allow access to other software.

3- Provides housekeeping software and manages applications.

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

What is an operating system?

A

An OS is a set of software programs designed to manage the hardware of the system. A modern OS has several purposes:

1- Controls the hardware of the system through software like resource management, hardware drivers, systems software, task management, scheduling, memory management, paging, segmentation and virtual memory.

2- Acts a platform on which applications software can run and deals with issues that the software may have e.g. storage of files.

3- Provides the operator with a suitable HCI to allow communication between user and hardware e.g. command line interface.

4- Handles communications between computer devices using rules and protocols to govern communication e.g.
across a network.

5- Handles translation of code through compilers, interpreters, assemblers to translate HLL/LLL into machine code.

6- Has many utility software programs used to carry out housekeeping tasks on the system to maintain the hardware.

7- Uses job scheduling to provide fair access to processor according to set rules.

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

What is memory management and what does it allow?

A

1- Organises the use of main memory by converting logical addresses to physical addresses.

2- Ensures no space is wasted by partitioning programs into chunks.

3- Allows programs to share memory to protect processes’ data from each other.

4- Ensures programs can’t access each other’s memory unless legitimately required to.

5- Allocates memory to allow separate processes to run at the same time and reallocates memory when necessary.

6- Allows programs larger than main memory to run.

7- Provides security to protect the OS.

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

What is paging?

A

Memory is divided into pages which are fixed sizes. These pages are made to fit sections of memory. Pages are physical divides and programs are split up to fit into a given number of pages.

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

What is segmentation?

A

Memory is divided into different sized segments. Segments are complete sections of programs which are LOGICALLY divided to fit data. To do this it will split the program into two parts and place them in available spaces.

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

What are the differences between paging and segmentation?

A

-Pages are fixed sizes, segments are different size.
-Pages are made to fit sections of memory, segments are complete sections of programs.
-Pages are physical divides, segments are logical divides.

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

What are the similarities between paging and segmentation?

A

-Are assigned to memory when needed to allow programs to run despite insufficient memory.
- Are stored on a backing store disk to swap parts of programs used for virtual memory.
- Allow programs to be stored in memory non-contiguously.
- May cause disk threshing when more time spent swapping pages than processing so computer may ‘hang’.

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

How does virtual memory work?

A

When the memory available is insufficient, an allocated area of a secondary storage device is used to allow large programs to run.

Uses a backing store as additional memory for temporary storage.

Swaps pages using paging between RAM and backing store to make space in RAM for pages needed.

Holds part of the program not currently in use.

High rate of disk access may cause computer to ‘hang’ when the disk is relatively slow and more time is spent transferring pages between memory and disk than processing. This problem is called disk threshing.

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

What is an interrupt?

A

Signal from hardware or software indicating that an event has occurred or that a process needs attention.

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

What is the interrupt service routine (ISR)?

A

A program with a set of instructions that need to be FDE’D to carry out the operations of the interrupt.

This means the program counter needs to be changed to the point to the address of the first instruction of the interrupt.

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

What happens to instructions/values stored in registers when there is an interrupt?

A

The values are copied into a stack, saving them for later.
Once the interrupt is complete we pop the frame off the top of the stack which allows us to retrieve the previous values and load them back into the registers to carry on with the instructions that were taking place before the interrupt.

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

What are the 6 steps of the ISR?

A

1) Check the interrupt register by comparing the priority of the incoming interrupt with the current task.

2) If it is of a lower or equal priority to the current task, then the current task continues.

3) If it is of higher priority, the CPU completes the current FDE cycle.

4) The contents of registers are copied to a LIFO stack stored in memory.

5) The location of the appropriate ISR is loaded by loading the relevant value into the PC.

6) When the ISR is complete:
Flags are reset to inactive state
Further interrupts are checked and serviced if necessary
Previous state contents are popped from the stack and are loaded back into the registers in order to resume
processing.

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

What are 5 scheduling algorithms?

A

Round Robin
FCFS
SJF
STR
MLFQ

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

What is MLFQ?

A

Multi-Level feedback queues-Several ready queues are used each with a different scheduling algorithm in.

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

What is a distributed operating system (DSOS)?

A

Allows the multiple computers, resources or processors on a network to work together on the same problem and be treated as a single system. Shares processing and the data between different systems on a network in order to reduce bottlenecks.

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

What is round robin scheduling?

A

An interactive system scheduling algorithm where each process has a time slice, at the expiration of which the CPU is given to another process. This promotes fairness.

14
Q

What is first come first scheduling? (FCFS)

A

Jobs are processed in the order in which they arrive.

14
Q

What is shortest remaining time scheduling?

A

The process with the smallest estimated time to completion is run next.

14
Q

What is Shortest Job First (SJF) scheduling?

A

A scheduling algorithm that deals with each user or task based on the getting the smaller ones out of the way.

14
Q

What is an embedded system?

A

Built into a device, often with limited resources.

14
Q

What is a multi-tasking operating system?

A

A round robin system which allows more than one task or software program to run apparently simultaneously using separate windows for each task to be opened at the same time. Each task is given a slice of processor time before going on to next. The user can switch between different programs available in different windows e.g. playing music while typing essay.

15
Q

What are 5 types of OS?

A

DSOS
Multi-tasking
Multi-User
ES
RTOS

15
Q

What is a multi-user operating system?

A

Allows many users to run programs and take advantage of the server’s resources at the same time.

15
Q

What is a real-time operating system (RTOS)?

A

The data is processed immediately and a response is given within a guaranteed time frame.

16
Q

What is BIOS?

A

It is a separate component of the computer which loads the operating system and other necessary modules for the computer into memory

16
Q

What is a device driver?

A

A program used by the operating system so that it can communicate with a peripheral device.

16
Q

Where is the BIOS stored?

A

Flash memory so that it can be updated and allows settings to be changed and saved by the user.

17
Q

What is a virtual machine?

A

A virtual machine is a theoretical or generalised computer which provides an environment in which a translator is available on which programs can run.

18
Q

What type of translator does a virtual machine use?

A

Uses an interpreter to run intermediate code. This intermediate code can then be run off any computer with a virtual machine but tends to be slower than a compiler.

19
Q

What is intermediate code?

A

1) Partly translated simplified code between high level and machine code that is produced by a compiler so the program is error free.

2) Is platform-independent so can run on a variety of computer devices and virtual machines using an interpreter improving portability between machines.

3) The program runs more slowly than executable code as it needs to be translated each time it is run by additional
software.

4) Protects the source code from being copied to help protect intellectual property.