Operating Systems (NOT FINISHED) Flashcards

(35 cards)

1
Q

Define Application Software

A

The software was written to address specific needs

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

Define System Software

A

Software that manages a computer system at a fundamental level

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

What are the 5 roles of an Operating System

A

System software that manages computer resources such as memory and input/output devices, provides an interface through which a human can interact with the computer, allows an application progra to interact with other system resources, the various roles of an operating system generally revolve around the idea of ‘sharing nicely’, an operating system manages resources, and these resources are often shared in one way or another among program that want to use them

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

What are the services provided by the OS

A

Editors and debuggers, Program execution, System access, Controlled access to files, Access I/O devices, Error detection and response, Accounting

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

What resource management does the OS provide

A

Multiprogramming, Memory management, Process management, CPU scheduling

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

What are desirable features for an OS

A

Memory protection for OS, timer, privileged instruction and interrupts

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

What are two approaches to Batch Processing

A

Uniprogramming, Multiprogramming

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

Define Uniprogramming

A

Processor must wait for I/O instruction to complete before proceeding

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

Define Mulitprogramming

A

When one job needs to wait for I/O , the processor can switch to another job

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

Define Timesharing system

A

A system that allows multiple users to interact with a computer at the same time

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

Define Virtual Machine

A

The illusion created by a time-sharing system that each user has his/her own machine

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

Define Device driver

A

A small program that knows the way a particular device expects to receive and deliver information

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

What are the 5 states an instruction can be in

A

New, Ready, Waiting, Running, Terminated

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

PROCESS CREATION: Define Parent process

A

The original, creating, process

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

PROCESS CREATION: Define Child process

A

The newly created process

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

PROCESS TERMINATION: What would be a reason to terminate a process

A

New batch job, HALT/STOP instruction, Interactive login, user logs off, Service/application completed, Fault/error, Terminating a Parent Process can terminate a child Process, …

17
Q

PROCESS SUSPENSION: Why would you suspend a process

A

The process needs an unavailable resource, OS suspects the process of causing a problem, An interactive user wishes to pause the process, The process may only need to run periodically, OS needs resources for another process, …

18
Q

PROCESS MANAGEMENT: How would you manage a process

A

Using a queue

19
Q

What are the two suspended states

A

Blocked/Suspended, Ready/Suspended

20
Q

Define Blocked/Suspended

A

The waiting process swapped out

21
Q

Define Ready/Suspended

A

The process could be executed, but swapped out

22
Q

Define CPU Scheduling

A

The act of determining which process in the ready state should be moved to the running state

23
Q

What are the two types of Scheduling

A

Non pre-emptive scheduling, pre-emptive scheduling

24
Q

Define non pre-emptive scheduling

A

The currently executing process gives up the CPU voluntarily

25
Define pre-emptive scheduling
The operating system decides to favour another process over the currently running one
26
What are some CPU Scheduling Approaches
First-come, First-Served, Shortest Job Next, Round Robin
27
Define First-Come First-Served
Processes are moved to the CPU in the order in which they arrive in the running state
28
Define Shortest Job Next
A process with the shortest estimated running time in the ready state is moved into the running state first
29
Define Round Robin
Each process runs for a specified time slice and moves from the running state to the ready state to await its next turn if not finished
30
Factors to evaluate an approach
Turnaround time, Delay, Processor Utilization
31
Define Turnaround time
The time between when a process first arrives in the ready state and when it exits the running state for the last time
32
What is the formula for delay
(turnaround - service time) / service time * 100
33
Define Processor Utilization
Percentage of time CPU doing useful work
34
Define Logical Address
Reference to a stored value relative to the program making the reference
35
Define Physical Address
Actual address in main memory, where the instruction/data is stored