Operating Systems Flashcards

1
Q

What is an operating system?

A

Software which manages the communications between the hardware and other software as well as sometimes providing an interface for the user.

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

What tasks must all operating systems carry out?

A

Memory management (RAM), interrupt service routines, processor scheduling, backing store management and management of all inputs and outputs.

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

What is memory management?

A

It is how the OS manages where in RAM the software stores data.

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

What is paging?

A

Paging is a memory management technique in which data is divided into fixed sized “pages” (usually 4Kb in size) and a dictionary is used to access them. Has the disadvantage that data often does not fill up pages so space is sometimes wasted.

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

What is segmentation?

A

Segmentation is a memory management technique similar to paging in that memory is split in to chunks but these can vary in size to be better suited to the program being stored.

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

What is virtual memory?

A

Where pages are switched between secondary memory and RAM when not in use so that there is more space available in RAM for other software.

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

What is an interrupt?

A

An interrupt is a signal sent by programs or hardware to request time from the OS. An example of a hardware interrupt would be a button being pressed or a printer saying it is out of paper, an example of a software interrupt would be a divide by 0 error.

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

What is an interrupt service routine?

A

When a CPU receives an interrupt it puts all current tasks onto a stack and the interrupt service routine is called dealing with each of the interrupts that have been caused.

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

At which point does the CPU check for interrupts?

A

At the end of every fetch-decode-execute cycle.

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

What is processor scheduling?

A

The method in which the OS decides which tasks are carried out when.

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

What is the round-robin scheduling system?

A

Where each task is given an equal amount of time and has to wait through the rest of the tasks if it does not complete its task in the required time, an interval timer generates interrupts at specific times to switch tasks fairly.

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

What is the FIFO scheduling system?

A

First In First Out (FIFO) systems process data in the order it arrives with no priority system.

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

What is the shortest remaining time / shortest job first scheduling system?

A

The scheduler predicts how long each task will take and carries out the tasks with the shortest expected time first.

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

What is a multi-level feedback queue?

A

A scheduling algorithm which is designed to prefer short jobs and separate tasks based on the requirement for them to use the processor, e.g. tasks that require I/O devices are ran sooner as they require less CPU time but will need to wait for the I/O device.

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

What is backing store management?

A

The system in the OS which manages secondary memory, it knows where data is stored and which memory locations are free as well as often allowing the user to move/delete files and manage which users can gain access.

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

What is peripheral management?

A

This is how the OS sends data to and from I/O devices and software and checks that data is being sent to the correct hardware. Data sent to an output device will be put in a buffer to free up CPU time as I/O devices require longer to run.

17
Q

What is a distributed OS?

A

It is a form of parallel processing where work is done over several computers and servers for example several servers providing one network that is more powerful than any of the individual server could be.

18
Q

What is a multi-tasking system?

A

One which can perform multiple tasks at once by switching between them very quickly such that you don’t notice, for example OS’s on PC’s are almost always multi-tasking.

19
Q

What is a multi-user, multi-tasking system?

A

One where several terminals connect users to a central computer to request tasks, for example people accessing a supercomputer at a university. Makes use of different scheduling algorithms.

20
Q

What is an embedded OS?

A

OS’s for embedded system, usually has a minimal UI, often doesn’t have RAM/memory management systems.

21
Q

What is a real time OS?

A

Real time operating systems have very strict timers and respond very quickly to inputs. They often have built in redundancy systems as real time OS’s are often used in safety critical systems like use in hospitals or aircraft.

22
Q

What is the BIOS?

A

The Basic Input Output System (BIOS) is the program which runs on PC boot that tests the PC is running as expected and then load the OS.

23
Q

What is a device driver?

A

A device driver is software which provides an interface between hardware and the OS so that the OS doesn’t need to be able to directly understand all hardware that could be connected to it. Drivers are specific to the hardware being used.

24
Q

What is a virtual machine?

A

Where software takes on the function of an individual machine often to emulate different hardware or OS.