Lesson 1 Flashcards

Intro

1
Q

What is an OS

A

Software that manages a computers hardware. Provides interface between the computer user and the computer hardware

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

What is a resource allocator?

A

the OS acts as a manager of CPU, memory, storage, IO

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

What is a control program?

A

manages the execution of user programs to prevent errors and improper use of the computer. Especially with IO devices

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

What is a bus?

A

provides access between components and shared memory

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

What is a device controller?

A

maintains local buffer storage and set of registers. responsible for moving data between peripherals and local buffer storage

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

what is a device driver?

A

driver understands the device controller and provides the OS with an interface to the device

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

what is an interrupt?

A

hardware can trigger an interrupt at any time by sending a signal to the CPU on the system bus (usually)

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

what is an interrupt vector?

A

a list of addresses (pointers) to the interrupt

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

high level explanation of interrupt flow

A

CPU uses interrupt-request line that the CPU checks after executing every instruction, when CPU detects an interrupt it reads the number and jumps to the pointer in the interrupt vector. then returns with “return_from_interrupt”

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

how does the CPU know which interrupts to prioritize?

A

interrups have interrupt priority levels

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

What is the difference between main and secondary memory?

A

main memory is ram, secondary is storage devices like HDD’s, ssd’s, etc

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

what is direct memory access? (DMA)

A

Used for bulk movement of data, basically copies entire blocks of memory of data directly to or from the devices and main memory, only requires 1 interrupt

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

how do clustered systems work?

A

utilize SAN’s and distributed lock managers to perform compute across shared stroage (think database)

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

What is a process?

A

programs that are organized so that the CPU always has one to execute in a multiprogrammed system

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

how do multiprogrammed systems works?

A

the OS keeps several processes in memory simultaneously and works on them switching back and forth when IO is needed

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

what are the two modes provided by the OS?

A

User mode and Kernel mode

17
Q

What is the purpose of dual-modes in the OS?

A

to ensure that programs cannot cause other programs to execute incorrectly

18
Q

What mode do system calls execute in?

A

kernel mode

19
Q

When exceptions or interrupts occur, which mode does the OS switch into?

A

kernel mode

20
Q

what is a mode bit?

A

a bit that designates whether the OS is in kernel or user mode

21
Q

describe what happens when a syscall is executed?

A

treated as a software interrupt, control is passed through the interrupt vector to a service routine in the OS and mode bit is set to kernel. the kernel examines the interrupt and calls the syscall

22
Q

what is a timer used for?

A

to ensure that a user program doesn’t get stuck in an infinite loop or fail to give control back to the OS

23
Q

what is a program counter?

A

keeps a list of next instructions to execute

24
Q

what is the difference between processes and user programs?

A

programs are passive, processes are active

25
Q

What is the OS responsible for when it comes to memory?

A

Keeps track of memory being used, allocates and deallocates memory, moves processes in and out of memory

26
Q
A