PART 1 - INTRODUCTION Flashcards

1
Q

What Is an Operating System?

A

Computer consists of some or all of:

  • Processors
  • Main memory
  • Disk
  • Various input/output device/interface

Managing all these components require a layer of software - the Operating System

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

What are the two main functions of an OS?

A

1) It is an extended Virtual Machine

2) It is a resource manager

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

How does the OS operates as an extended machine?

A

It provides usable abstractions for complex/difficult to use hardware

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

How does the OS operates as a resource manager?

A
  • The OS allow multiple programs to run at the same time
  • It manages and protects memory, I/O devices and other resources
  • It shares resources in two ways:
    1) In time
    2) In space
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a process?

A

A Process is the key operating system abstraction.

A process is a program in execution.

Each process has an address space.

  • Memory locations the process can read and write.
  • Executable program text, program data and its stack (one frame per active procedure).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Monolythic vs Microkernel

A

Traditionally all OS layers are in kernel
– But kernel bugs bring whole system down
– In monolithic systems a bug in an audio driver can crash the system
➔ Put as little as possible in kernel mode

• Microkernels
– Split OS into small, well-defined modules
– Run only one essential module in kernel mode (the microkernel for process management, IPC etc.)
– Device drivers, filesystem etc. are separate user mode processes
• Bug in audio driver will garble sound not the system!

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