P1L1 Flashcards

1
Q

OS provides

A

abstractions
mechanisms
policies

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

Operating System is

A

a special piece of software that abstracts and arbitrates the use of a computer system

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

What does an operating system do?

A

hides hardware complexity
resource mgmt
provides isolation and protection

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

OS Abstractions

A

Process, thread, file, socket, memory page

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

OS Mechanisms

A

create, schedule, open, write, allocate

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

OS Policies

A

least recently used (lru), earliest deadline first (edf)

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

Separation of mechanisms and policies

A

implement flexible mechanisms to support many policies

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

Common case principle

A

Optimize for common case

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

User/Kernel Protection Boundary

A

user mode attempting to perform priv access causes trap and switches control

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

To make a system call

A

app must

  • write args
  • save relevant data at well-define location
  • make system call
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

user/kernel transition cost

A

not cheap 50-100 ns

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

Basic OS services

A

process, file, device, memory, and storage mgmt

security

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

Types of OS

A

monolithic
modular
microkernel

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

monolithic OS

A

everything included

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

Modular OS

A
(Linux) Modular interface which supports loading a module
indirection can impact performance and maintenance can be an issue
The main elements of a modular operating system are a kernel and a set of dynamically loadable applications with their own discrete memory spaces.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Microkernel OS

A

requires a lot of interprocess comm
verifiability
is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system (OS).