Unit 2 Lesson 1 - OS Functions Flashcards

1
Q

What is an Operating System?

A

Software to manage communication with computer hardware.

Manages the hardware and provides an interface for the user and application software.

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

What functions does the Operating System provide?

A

User Interface
Memory Management
Interrupt Handling
Processor Scheduling

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

What is Memory Management via Operating System?

A

The Operating System handles allocation of RAM to the different programs.

There may not be sufficient RAM for all desires processes o be completely loaded into RAM at once

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

What is Paging?

A

When available memory is divided into fixed sized chunks called “pages”.

Each page has an address

A process loaded into RAM is allocated sufficient pages, but those pages may not be Contiguous (next to each other) in physical terms

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

What is Segmentation?

A

Memory is divided into segments which can be different lengths.

Could refer to parts of a program e.g: a function / subroutine may occupy a segment

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

What is Virtual Memory?

A

An area of the Hard Disk which is designated as Virtual Memory.

It is a memory space which is used when RAM is full.

Pages can be put into Virtual Memory until they are needed in which they are put back into RAM

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

What can disk thrashing happen by using Virtual Memory?

A

If many processes are running and computer has insufficient RAM, lots of time is spent swapping pages in and out of virtual memory

Repeatedly swapping pages in and out RAM can noticeably slow down the computer

This is known as Disk Thrashing

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

Interrupts & Examples

A

The CPU must be able to be interrupted when necessary.

Interrupts can be sent to CPU by software, hardware devices or CPU’s internal clock.

The CPU checks at the end of each clock cycle whether there are any interrupts to be processed

Examples:

Power Failure
Error in a program
Scheduled interrupt from internal clock

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

What happens when an interrupt is detected?

A

The processor stops fetching instructions and instead pushes the current contents of its registers onto a stack.

The CPU uses an interrupt service routine to process the interrupt

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

What is Interrupt Priority?

A

Interrupts have different priorities. Interrupts will be processed in order of priority.

Interrupts can be interrupted if new interrupt has higher priority.

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

What happens when an interrupt is interrupted?

A

When a higher priority interrupts occurs while an interrupt is being processed, the original interrupts registers is pushed onto the stack as well.

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

What is Processor Scheduling?

A

A CPU can only process instruction for one application at a time.

The Operating System must schedule when each application can use the CPU.

Gives illusion of multi-tasking (multiple applications running simultaneously)

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

What are the aims of processor scheduling?

A

To provide acceptable response times for all users
To maximise time the CPU is usefully engaged
To ensure fairness on a multi-user system

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

What is Round Robin scheduling?

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

What is First Come First Served scheduling?

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

What is Shortest Remaining time scheduling?

17
Q

What is Shortest Job First scheduling?

18
Q

What are Multi Level Feedback Queues?