Lecture 4 Flashcards

1
Q

What does an OS do?

A

The OS controls the execution of applications and acts as an interface between the apps and hardware

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

What are the three objectives of an OS

A

Convenience, evolution, efficiency

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

What is mutual exclusion?

A

OS governs the use of resources, one at a time

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

What are the 5 main functions of an OS

A

Process management, resource management, memory management, storage management, security and privacy

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

What is a process

A

A program in execution that can be assigned and executed by a processor

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

What are the four main problems with processes

A

Improper sync, failed mutual exclusion,nondeterminate program operations, deadlock

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

What are the three components of a process

A

An executable, the data, the context

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

First come first serve

A

Non preemptive, must go through each operation completely (unless I/O) uses ready queue

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

Shortest Job First

A

Makes a priority queue based on Run time, shortest to complete processes go first, non preemptive

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

How does CPU tell what jobs are the shortest?

A

By number of instructions

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

Shortest remaining Time next SRTN

A

Used to clear up RAM pre emptive

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

smallest Job first SJF

A

Preemptive used to clear space in RAM

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

Round Robin

A

Uses time slices to break up processes, preemptive algorithm, improves responsiveness

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

Priority based algorithm

A

Preemptive based on assigned priority

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

What are resources?

A

CPU, I/O BUS and memory

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

What is mutual exclusion

A

Each resource may only be used by one process at once

17
Q

Who is responsible for resource management?

A

The OS

18
Q

What are the principles of resource management

A

Fairness, Differential Responsiveness, Efficience

19
Q

What is starvation

A

When a process does not get resources for a long time

20
Q

What are the three methods for memory management

A

Paging, segmentation, and paging and Segmentation

21
Q

What are the principles of storage management

A

Process isolation
Automatic allocation
Support for modular programming
Protection and access control
Long term storage

22
Q

What are some disk search methods

A

CScan
Elevator algorithm
F Seek

23
Q

What are the latencies involved with a hard disk

A

ARM time , rotational latency reading latency

24
Q

What must be used for security

A

Hash functions (collision reistant)

25
Q

What are the principles of security

A

Availability, confidentiality, data integrity, authenticity

26
Q

Types of operating systems

A

Old
Serials processing
Batch processing
New
Time sharing
Multi process