Introduction to OS Flashcards

1
Q

What is an OS?

A

The OS is a layer of software which manages some or all of the computers: disk, processor, memory and I/O devices

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

Two main functions of an OS

A

To provide virtual machine abstraction of the underlying hardware.
To manage access to the CPU
A resource manager.

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

OS as an Extended Machine

A

The OS provides usable abstractions for complex or difficult to use hardware.

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

OS as a Resource Manager

A

It allows multiple programs to run at the same time, manages and protects memory, I/O devices and other resources.

It shares resources in time and in space.

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

The OS kernel

A

The kernel is the core of the OS; it controls access to hardware and system resources. Kernel mode can be used for privileged operations.

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

OS Structure

A

Many types of systems (e.g. mainframe, servers, mobiles, PCs) however one size does not necessarily fit all

OS needs to meet non functional requirements i.e. maintainable and reliable

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

Monolithic OS

A

All OS layers are in Kernel (making the OS a single binary library linked to apps).

A bug in the kernel can bring the whole system down e.g. a bug in the audio driver can crash a whole system including unrelated applications.

Monolithic 0S (Linux): 15,000,000 lines of code

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

Microkernel OS

A

For improved reliability Microkernel OS put as little as possible in the kernel (split into small, well-defined modules)

Runs only the essential modules in the kernel while drivers, filesystems etc are separate user mode processes.

MINIX3 microkernel: 15,000 lines of code

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