CompSci - Operating Systems Flashcards

(22 cards)

1
Q

OS Types

A

Batch
Single-User
Multi-User
Multi-Tasking
Multi-Programming

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

OS Types - Batch

A

Executes several tasks simultaneously without user interaction

Used for data processing like billing

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

OS Types - Single-User

A

Operated by one user at a time

The user interacts with a personal computer.

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

OS Types - Multi-User

A

Operated by several users at a time

Used for DBMSs and cloud platforms

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

OS Types - Multi-Tasking

A

Can quickly switch between processing several tasks, giving the illusion of parallelism

Used for personal computing

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

OS Types - Multi-Programming

A

Allows to load several programs into memory at once, optimising CPU utilisation during it.

Used for personal computing.

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

Causes of Interrupts

A

Hardware interrupts
Software interrupts
Timer interrupts
User interrupts

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

Software Interrupts

A

Triggered by important software instructions or errors

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

Hardware Interrupts

A

Triggered by I/O signals or component failure

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

Timer Interrupts

A

Triggered at regular intervals for multitasking

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

User Interrupts

A

User input

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

Interrupts

A

Signals that signify that immediate attention is required for something. Anything being currently processed is temporarily paused.

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

Interrupt Handling

A

OS suspends the current interrupt handling routine
Current CPU state is saved in memory
OS initiates the higher priority interrupt handling routine
Once it’s finished, the OS reloads the CPU state and it resumes its previous function.

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

Interrupt Priorities

A

Since multiple interrupts can occur at once, the OS needs to be able to decide which to deal with first.

High / Imminent component failure
Medium / Timer interrupt
Low / I/O signals

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

Factors In Allocating Priorities To Interrupts

A

Urgency
Stability Significance
Frequency of Occurence
Resource Dependence

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

Purpose of Memory Partitioning

A

Dividing RAM into blocks of memory so that several programs can be loaded and run simultaneously.

Multi-programming support
Efficient memory use
Isolation

17
Q

Consequences of Memory Partitioning

A

pretty much the same as fixed and variable fields

Fixed Partitioning:
Redundant space
Easy to process

Variable Partitioning:
Complex to process
No redundant space

18
Q

Methods of Data Transfer

A

CPU is responsible for moving data, constantly checks if the device is ready
The device sends interrupts as “handshakes” to signify that data was sent
A dedicated controller moves the data

19
Q

Buffers

A

Temporary memory areas to hold data in peripheral devices while it is being transferred between devices to account for difference in speed of the devices.

Single Buffering / One memory area is used
Double Buffering / Two memory areas are used, so that one can be filled while the other emptied.

Double buffers increases active time of the device, optimise CPU usage and lower time delay for interrupt handling.

20
Q

Resource Priority Management

A

Processor allocation - Manages which tasks can be processed in a queue
Hardware allocation - Manages access to hardware resources like memory

Prevents overload
Maintains system responsiveness
Balances tasks for maximum optimisation

21
Q

States of A Process

A

Running - Being executed
Ready - Waiting for CPU allocation
Blocked - Waiting for an event to occur

22
Q

CPU Process Management

A

Time-Slicing - CPU time is divided into units that is distributed among processes
Polling - CPU costantly checks a device to see if it’s ready
Threading - CPU processes several tasks within one process, paralellism