Assessment improvements Flashcards

1
Q

What is a device driver?

A

A device driver is a program that controls a piece of hardware, providing an interface between the device and OS.

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

What are three characteristics of virtual memory?

A

Memory contents are divided into pages

Pages not needed are moved to virtual memory - an area on a secondary storage device

When required, the pages are moved from virtual memory back into RAM.

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

What is an interrupt?

A

An interrupt is a signal to the processor indicating a device/process needs attention.

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

What happens when the CPU receives an interrupt?

A

If an interrupt is of lower or equal priority to the current process, the current process continues

If it is of higher priority, the CPU finishes its current FDE cycle before taking action

The contents of the CPU’s registers are copied into the stack in memory

The location of the appropriate ISR is loaded into the PC

When the ISR is complete, the previous contents are popped from the stack and loaded back into the registers

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

Why may first come, first served scheduling be inefficient?

A

Once a job starts, it prevents other jobs from being processed. A job using a slow resource wastes processor time

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

Why is scheduling necessary?

A

Scheduling is needed so that as many jobs as possible are able to be processed in the least possible time.

It ensures all jobs are processed fairly and makes efficient use of resources/processor time

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