Introduction, Virtulization CPU, memory Flashcards

1
Q

What happens when a program runs?

A

It executes instructions.

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

Describe Von Neumann model of computing

A

The processor fetches an instruction from memory, decodes it (figures out which instruction this is), and executes it (adding two numbers, check a condition..), then processor moves to then next instruction until program completes.

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

Why does the OS virtulize resources?

A

Make the system easier to use

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

What does it means when the OS virtualize a resource?

A

The OS takes a physical resource, and transform it into a more general, powerful and easy to use virtual form of itself.

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

What is OS often refered or known as?

A

Virtual machine, resource manager, supervisor, master control program, standard library

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

Standard library to application OS provides

A

System calls

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

Resources of the system

A

CPU, memory, disk

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

What is it we call virtualizing the CPU?

A

Turning a single CPU or small set of them into a seemingly infinite number of CPUs and thus allowing many programs to seemingly run at once.

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

What is a policy of the OS?

A

Policies are used in many different places within an OS to tell OS what to do, which program should run?

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

How do modern system vision memory?

A

Array of bytes

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

Through which types of instruction do program access its datastructures in memory?

A

Loads, stores or other explicit instruction that access memory. Instruction is in memory aswell.

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

Explain what virtualizing of memory means

A

Each process accesses its own private virtual address space, which the OS maps onto the physical memory of the machine.

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

Give an example of concurrency problem

A

When two threads tries to increment a shared variable at the same time the result will be undeterministic because the incremention of the variable isnt happen atomiclly. The loading of the variable value onto a register, incrementing it and storing it. We doesnt have anything that locks this critical section and thus the threads can go between eachother and the resulting value of the variable is unpredictable.

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

Software in the operating system that manages the disk is called

A

File system

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

What is the file systems responsibilities?

A

It is responsible for storing any files the user creates in a reliable and efficient manner on the disks of the system.

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

What system calls are routed to the part of the operating system called the file system??

A

open(), write(), close()

17
Q

How does the OS access devices of the system

A

Through its system calls.

18
Q

Storing files, making them safe over long term

A

Persistently

19
Q

Same time

A

concurrent

20
Q

Basic goals of OS

A

Build abstractions, provide high performance (minimize the overheads of OS), protection between application, reliability, energy-effiency, security against malicious application, mobility (run on smaller devices)

21
Q

Types of overheads:

A

Extra time (more instructions), extra space

22
Q

Key to protection

A

Isolation

23
Q

Set of libraries of commonly-used functions.

A

Features of early OS

24
Q

As a number of jobs were set up and then run in a batch. One at a time.

A

Batch processing

25
Q

Difference between a procedure call and system call

A

System call transfers control into the OS while simultaneously raising the hardware privilege level.

26
Q

Mode user application run in

A

User mode

27
Q

What does it mean for an application to run in user mode

A

Hardware restricts what applications can do, cant initiate an I/O request to the disk.

28
Q

What happens when a system call is initiated?

A

Often is initiated through a special hardware instruction called trap. The hardware transfers control to a pre-specified trap handler and raises the privilege level to kernel mode. In kernel mode OS has full access to the hardware and can initiate an I/O request or make memory available to a program. When the OS is done servicing the request, it passes control back to user via a special return-from-trap instruction (which revers to user mode and passing control back to where the application left off.

29
Q

What is multiprogramming?

A

An early operating system, runs a part of a program then another and so on, switch between processes

30
Q

What is minicomputer?

A

Early type of computer, less expensive, UNIX was developed on this type of computer.

31
Q

Early operating system that took a cooperative approach to job schedulig, computer could get stuck in an infinite loop forcing reboot.

A

Mac OS (v9 and earlier)

32
Q

Features that made UNIX popular

A

Providing a compiler for the new C programming language.

33
Q

Operating system which borrowed heavily on the principles behind UNIX but not the code base and was apart of modern open-source software movement.

A

Linux, created by Linus Torvalds.