1.2.1 - Systems Software Flashcards

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

What does ‘operating system’ mean?

A

The term operating system refers to 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

Name four tasks that the operating system does.

A
Memory management (paging, segmentation, virtual memory);
Resource management (scheduling);
File management;
Input / output management;
Interrupt management;
Utility software;
Security;
User interface.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name the two types of memory management.

A

Paging and segmentation.

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

Describe the purpose of memory management.

A

Computer memory must be shared fairly between multiple programs and applications to ensure the computer doesn’t crash and each application runs properly.

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

Describe how paging works.

A

Paging is when memory is split up into equal size sections called pages.

Paging uses physical divisions of memory.

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

Describe how segmentation works.

A

Segmentation is the process of splitting up memory into segments of varying size.

Segmentation uses logical memory divisions.

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

What is meant by ‘virtual memory’?

A

Virtual memory uses a section of the hard drive to act as RAM when the RAM is insufficient.

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

What is the main issue with virtual memory?

A

Virtual memory can cause disk thrashing to occur. This is where the computer freezes as a result of pages being swapped too frequently between the hard disk and main memory.

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

What is an interrupt?

A

Interrupts are signals 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
10
Q

How are interrupts stored?

A

Interrupts are stored in order of their priority.

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

Whose job is it to ensure interrupts are serviced fairly by the processor?

A

The operating system through interrupt service routines.

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

How does an interrupt service routine work?

A
  • The processor checks the contents of the interrupt register at the end of each fetch-decode-execute cycle.
  • If an interrupt exists that is a higher priority to the process being executed, the current contents of the registers in the CPU are transferred onto the stack.
  • The processor then loads the correct interrupt service routine into RAM.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What happens when an ISR has finished?

A

The contents of the registers are taken from the stack and reloaded into the registers in the CPU. The processor then carries on as normal.

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

What is scheduling?

A

Scheduling ensures that all sections of the programs being run receive a fair amount of processing time.

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

Name the five scheduling algorithms.

A

Round robin, first come first served, shortest job first, shortest remaining time and multilevel feedback queues.

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

Describe how the round robin scheduling algorithm works.

A

Each job is given a section of processor time called a time slice. If the job has not been completed when the time slice has ended, the next job is given a time slice.

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

Describe how the first come first served scheduling algorithm works.

A

Jobs are processed in chronological order by which they entered the queue.

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

Describe how the shortest job first scheduling algorithm works.

A

The queue storing jobs to be processed is ordered according to the time required for completion, with the longest jobs being serviced at the end.

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

Describe how the shortest remaining time scheduling algorithm works.

A

The queue storing jobs to be processed is ordered according to the time left for completion, with the jobs with the lowest remaining time being serviced first.

20
Q

Describe how the multilevel feedback queue scheduling algorithm works.

A

This makes use of multiple queues which store different priority jobs. The higher priority, the faster the job is completed.

21
Q

What is a disadvantage of using the round-robin scheduling algorithm?

A

Longer jobs have a much longer time to completion due to the execution being split up into multiple cycles.

22
Q

What is a disadvantage of using the first come first served scheduling algorithm?

A

There can be lots of small jobs waiting behind a larger job.

It doesn’t take into account the priority of the job.

23
Q

What is a disadvantage of using the multilevel feedback queue scheduling algorithm?

A

It is difficult to implement as it has to decide which job to prioritise.

24
Q

What is a disadvantage of the shortest job first algorithm?

A

It requires the processor to estimate how long each job will take.

There is a risk of processor starvation if short jobs keep on being added to the queue.

25
Q

What is a disadvantage of the shortest remaining time algorithm?

A

There is a risk of processor starvation if short jobs are added to the queue.

26
Q

Name the five different types of operating system.

A

Distributed, embedded, multi-tasking, multi-user, real time.

27
Q

Describe how a distributed operating system works.

A

A distributed operating system runs across multiple devices which allows the load to be spread across multiple computer components when a task is run.

28
Q

Describe the features of an embedded operating system.

A

An embedded operating system is built to support a small range of tasks and catered towards a single device.

29
Q

Describe how a multi-tasking operating system works.

A

Multi-tasking operating systems allow the user to carry out tasks seemingly simultaneously. This is done by switching quickly between programs and applications in memory.

30
Q

Describe how a multi-user operating system works.

A

Multiple users make use of a single computer (usually a supercomputer) from different terminals.

31
Q

Describe how a real time operating system works.

A

A real time operating system is designed to perform a task within a guaranteed time frame.

32
Q

Name two features of an embedded operating system.

A

They are limited in functionality

Hard to update

No memory management

Consume less power that a traditional operating system

33
Q

Name an important feature of a multi-user operating system.

A

A scheduling algorithm must be used to ensure processor time is shared fairly between jobs. This is to reduce the risk of processor starvation.

34
Q

What does the BIOS stand for?

A

Basic Input Output System.

35
Q

What is the first program run when a computer is loaded?

A

The BIOS.

36
Q

Name a test that is run as part of the BIOS.

A

Power On Self Test (POST)

Checking the CPU clock, memory and processor to ensure that it is operational.

Testing for external memory devices.

37
Q

What happens during the power on self test (POST)?

A

Ensures that all hardware are correctly connected and functional.

38
Q

What is a device driver?

A

A computer program that is provided by the operating system and allows the operating system to interact with hardware.

39
Q

What are device drivers specific to?

A

The computer’s architecture and the operating system.

40
Q

What is a virtual machine?

A

A theoretical computer that is a software implementation of a computer system. It also provides an environment with a translator for intermediate code to run.

41
Q

What is intermediate code?

A

Code that is halfway between machine code and source code is called intermediate code.

42
Q

What is intermediate code independent of? What advantage does this give?

A

The computer architecture. This means it can be used across different machines and operating systems.

43
Q

Why are virtual machines commonly used?

A

They create a development environment for programmers to test programs on operating systems.

44
Q

What are the advantages of using virtual machines?

A

It saves time and money for developers as they do not have to purchase multiple devices solely for testing purpose.

45
Q

What is a disadvantage of using a virtual machine?

A

Intermediate code can be considerably slower than using low level code on the device it was designed for.

46
Q

Name another use of a virtual machine.

A

Protection from malware.

Running incompatible software.