L9 - Operating System Flashcards

1
Q

What are three categories of external IO devices?

A

Human readable

Machine readable

Communication

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

What are the major functions of an IO module

A

Control and timing

Processor communication

Device communication

Data buffering

Error detection

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

What are the three techniques for IO operations?

A

Programmed IO - Sequence of commands; program must wait for IO operation to finish - wasteful of processor time

Interrupt-Driven IO - Most IO devices; processor issues IO command then interrupt is generated when IO operation is completed; processor then handles the interrupt and IO data

Direct memory access - IO module and main memory exchange data directly without processor involvement

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

What are the four IO commands?

A

Control - used to activate a peripheral and tell it what to do

Test - used to test various status conditions

Read - read data from peripheral and place in internal buffer

Write - take item of data from data bus and transmit to the peripheral

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

What is the most important system program?

A

Kernel - contains OS core and is always resident in main memory

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

What are the typical services provided by an OS?

A

Program creation

Program execution

Access to IO devices

Controlled access to files

System access

Error detection & response

Accounting of resources

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

what are 4 desirable features of an os?

A

Priviledged instructions - can only be executed by the operating system, error interrupt if encountered in a program. IO operations priviledged

Timer - prevent a job from monopolizing the system. If timer expires an interrupt occurs and system regains control

Memory protection - User program only allowed to access some areas of memory, error if program tries to access restricted areas

Interrupts - give system more flexibility

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

What are the 3 types of operating systems?

A

Interactive system - user interacts with computer to request job

Batch system - Users program batched together with other programs

Uni/multi programming - Uni - can only run one program at a time

Multi - semi simultaneous; can run multiple programs at a time

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

What is a time sharing OS?

A

User interacts

Processor time shared between multiple users

Multiple users simultaneously access system

Not to be confused with multiprogramming

Users see 1/n of effective computer speed

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

What is long term scheduling?

A

Decision to add to pool of processes o be execuyted

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

What is medium term shceduling?

A

Decision to add to number of processes partially or fully in memory

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

What is short term scheduling (dispatching)?

A

Decision as to which process will be executed by the processor

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

What is IO scheduling?

A

Desicion as to which process’s pending IO request shall be handled next

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

What is fixed partitioning?

A

All memory partitions have same size - caused small programs to take massive amounts of space if partitions were too big

large processes need multiple partitions

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

What is dynamic partitioning?

A

Each partition has a different size but fixed location; fragmentation

difficult to track full process location

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

What is the common memory management system used now?

A

Paging

17
Q

How does paging work?

A

Logical address - used within program and uses page number and offset

Page table contains physical addresses of pages

When address accesed; page no from logical address converted to physical address from page table

So actual physical address is determined

Small pages so not much wasted space

18
Q
A