OS Design and goals Flashcards

1
Q

Mainframe Computer goals

A

Maximum hardware resource utilization

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

PC

A

Optimized around a user and it’s programs

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

Handheld

A

Easy UI, performance and energy efficiency

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

Kernel

A

The programs that run Indefently in the system. All other programs are user or application programs.

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

Firmware

A

Program that provides low level control for the hardware

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

BIOS

A

Basic Input Output System: non-volatile firmware that is used to perform hardware initialization during the booting process (bootstrapping)

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

Bootstrapping

A

Self-starting process. Loaded when the computer is turned on and is stored in ROM or EPROM. Initializes all computer hardware and finally loads the OS kernel and transfers control to it.

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

Interrupt

A

A signal sent to the CPU, generated from a hardware device.
Once an interrupt is received alongside its interrupt number, the CPU looks up the Interrupt Vector/Descriptor Table to find the program’s address, loads, and runs it. Also saves the PC, PSW, and registers into the system stack.

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

Trap

A

A program generated interrupt for handling requests like direct OS calls and errors.

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

Synchronous vs Asynchronous I/O handling

A

Sync:
A trap is set for the IO request. The kernel requests the operation from the device. The Program is marked as blocked. Once the interrupt from the device is complete, the program is marked as ready and will be scheduled to continue execution.

Async:
A trap is set for the IO request. The program continues to run instantly. Basically it can do whatever it wants and will check for the IO result on its own.
When IO is complete, the kernel will wither:
1. Send a signal SIGIO
2. Call a callback
3. update status table

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

Device-State Table

A

Used in Async and multi-processor Sync IO to manage device status and IO queue.

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

DMA

A

Direct Memory Access:
Allows hardware devices to transfer data from and to the main memory without CPU interference.

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

DMAC

A

Direct Memory Access Controller:
Programmed by the CPU when an IO is needed. The controller is programmed with how much data should be written, where to store it (address), and the device data it will communicate with. Takes control of BUS when needed to write to memory.

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

DMA IO flow

A

CPU programs DMAC. Orders device controller how much data to send and through what DMA channel. DMAC does its thing and writes to memory. When DMAC sees that it received the amount of data it was supposed to, it creates an interrupt.

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

Mode Bit

A

A physical bit in the CPU registry that indicates the current execution mode (User/Kernel)
0 = kernel mode
1 = system mode

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