Lecture 4 Flashcards

1
Q

Define an OS?

A

An operating system is the software that controls the overall operation of a computer system.

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

What are the functions of an OS?

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 Application software?

A

Performs specific tasks for users

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

What is System software?

A

Provides infrastructure for application software

Consists of operating system and utility software

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

Wat is the Kernel?

A
Kernel: Performs basic required functions such as:
File manager
Device drivers
Memory manager
Scheduler and dispatcher
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the memory manager?

A

Allocates space in main memory
May create the illusion that the machine has more memory than it actually does (virtual memory) by playing a “shell game” in which blocks of data (pages) are shifted back and forth between main memory and mass storage

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

What is the bootstrap?

A

Boot loader: Program in ROM (example of firmware)
Run by the CPU when power is turned on
Transfers operating system from mass storage to main memory
Executes jump to operating system

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

What is the Scheduler?

A

Adds new processes to the process table and removes completed processes from the process table

A scheduler is a program, a set of instructions, used by the OS to decide where each of the jobs which are in its control should be and in what order to manipulate them.

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

What is the Dispatcher?

A

Controls the allocation of time slices to the processes in the process table
The end of a time slice is signaled by an interrupt.

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

What are interrupts?

A

Some tasks are more important than others. Therefore, interrupts are used - to tell the processor to stop what it is doing because there is something more important which needs dealing with. Before the Fetch Decode Execute cycle, the CPU checks the contents of the interrupt register

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

3 goals of scheduling?

A

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

A scheduling algorithm should also ensure all tasks are processed, by changing the priorities if necessary.

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

What is memory management?

A

All operating systems need memory management software:
To allocate memory to allow separate processes to reside in memory and then run at the same time.
To reallocate memory when necessary, for example reallocating the memory space of a closed program.
To protect processes and data from each other by blocking access to the memory space of another program.

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

What is segmentation?

A

. Segmentation is where each task has a whole “segment”. The whole segment has to be moved to and from virtual memory, however, segmentation avoids the need to split up a program.

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

What is paging?

A

Paging is where a program is split into pages, which all have the same size. Individual pages can be swapped in and out of virtual memory, which can lead to more efficient use of RAM. However, programs have to be split into individual pages.

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

What is virtual memory?

A

A computer will only have a limited amount of RAM. When the RAM is full, virtual memory has to be used, based on secondary storage (such as the hard disk). This allows programs to run that need more memory than is available. However, if virtual memory is overused, then the processor could end up spending more time moving segments or pages between RAM and virtual memory. This is known as disk thrashing, and can result in the computer performing sluggishly, or “hanging”.

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