F453 - functions of an OS Flashcards

1
Q

Why interrupts are used in a computer system?

A

To obtain processor time… for a higher priority task to avoid delays
to avoid loss of data
as an indicator to the processor… that a device needs to be serviced

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

State some sources of interrupts

A

power failure/system failure peripheral eg printer (buffer empty)/hardware clock interrupt
user interrupt eg new user log on request software

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

Why is scheduling used?

A

maximise number of users…
…with no apparent delay
maximise number of jobs processed… …as quickly as possible
obtain efficient use of processor time / resources…
…dependent upon priorities
…to ensure all jobs obtain processor time/long jobs do not monopolise the processor

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

Why are jobs given different priorities in a job queue?

A

some jobs are more urgent than others

priorities are used to maximise the use of the computer resources

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

Why is memory management necessary?

A

to allocate memory to allow separate processes to run at the same time to deal with allocation when paging/segmentation
to reallocate memory when necessary
to protect processes/data from each other
to protect the operating system/provide security to enable memory to be shared

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

Why is virtual memory needed?

A

to allow programs to run that need more memory than is available

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

How is virtual memory used?

A

use of backing store as if it were main memory/temporary storage
paging/fixed size units
swap pages between memory & backing store… …to make space for pages needed

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

What’s the problem of disk threshing?

A

occurs when using virtual memory/moving pages between memory & disk
disk is relatively slow
high rate of disk access
more time spent transferring pages than on processing

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

Name and describe 4 methods of scheduling

A
round robin
each user allocated a short period of time/in a sequence or
system of priorities
highest priority first
or
length of job
shortest job first
or
first come, first served
jobs processed in order of arrival
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is spooling and when is it used?

A

output data to disk drive/storage device for printing at another time
to allow sharing/on a network
job references stored in a queue/buffer avoids delays / avoids speed mismatch as printers are relatively slow
jobs can be prioritised

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

How are paging and segmentation similar?

A

ways of partitioning memory
allow programs to run despite insufficient memory/used for virtual memory segments and pages are stored on backing store
segments and pages are assigned to memory when needed

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

What problems may occur from paging and segmentation?

A

disk threshing

more time spent swapping pages than processing computer may ‘hang’

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

When is the boot file used?

A

while the operating system is loading when the computer is switched on after POST

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

What is the purpose of the boot file?

A

provides personal settings

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

What’s virtual memory?

A

use of backing store…
…as additional memory
uses paging / swapping pages (between memory & backing store)
holds part of the program not currently in use allows large programs to run (when memory size is insufficient)

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

What’s the purpose and use of the file allocation table?

A

a map of where files are stored…
…in backing store/hard disk
provides addresses/pointers to (start of) files
stores file names, and stores file sizes
stores access rights,
identifies free space
is updated by the operating system when files are saved/deleted Is used by the operating system when files are accessed

17
Q

Explain why the first come, first served scheduling method may not be efficient

A

once the job starts it prevents other jobs from being processed.
A job using a slow resource (printer) wastes processor time

18
Q

Other than FCFS, describe one other scheduling method

A

round robin - time slice to each user in turn
OR
length of job - shortest job first

19
Q

Describe paging

A

partitioning memory
pages are fixed size
pages are physical divisions
used for virtual memory