Chapter 2 - introduction to operating systems Flashcards

(23 cards)

1
Q

what is an operating system

A

body of software as in charge of making sure the system operates correctly and efficiently

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

virtual machine

A

OS takes a physical resource and transforms it to virtual form

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

time sharing

A

OS switches quickly between programs

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

context switch

A

makes one CPU look like many

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

how to read memory

A

specify address - access the data stored there

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

where does a program keep its data structure

A

memory

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

what does malloc do

A

gets memory at a specific address

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

What is virtual memory?

A

technique where each process gets a private address space, managed by the OS

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

concurrency

A

host of problems that arise

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

thread

A

function running within the same memory space as other functions

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

a thread is not atomic - what does that mean

A

another thread can interrupt in the middle -> gets different output with different threads

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

race condition

A

outcome depends on timing of thread switching

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

data race

A

A type of bug caused by unsynchronized access to shared data by multiple threads.

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

storing devices - why

A

SDD/hard drives - keep data permanently

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

3 basic system calls

A

open, write, close

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

how to prevent losing data after crash

A

use storing devices

17
Q

what part of OS manages disk storage

18
Q

are files shared across programs - what does not

A

yes - CPU and memory

19
Q

what is journaling/write-ahead logging

A

write a log before writing real data to recover from crashes -

20
Q

what should OS minimize

A

time overhead (extra instructions)
space overhead (memory of disk use)

21
Q

main goal of operating system

A

build abstractions that hide hardware complexity

22
Q

what should OS protect

A

processes from each other and from the OS itself

23
Q

Why is OS reliability important?

A

Because if the OS crashes, everything else crashes too