1.2.1h - multitasking (y12) Flashcards

1
Q

What is multitasking?

A

Running multiple processes at the same time.

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

How does a single-core CPU multitask?

A

By switching rapidly between processes.

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

What allows multitasking to work?

A

The OS uses scheduling to share CPU time.

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

What is time slicing?

A

Giving each process a small time to run before switching.

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

What is a context switch?

A

Saving the state of a process and loading another.

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

Why is multitasking useful?

A

It improves CPU efficiency and user experience.

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

What is a process?

A

An instance of a running program.

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

What is a thread?

A

A smaller sequence of instructions within a process.

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

What does the scheduler do?

A

Decides which process runs next.

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

What is cooperative multitasking?

A

Processes voluntarily give up CPU control.

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

What is pre-emptive multitasking?

A

The OS decides when to switch processes.

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

Why must memory be managed during multitasking?

A

To prevent processes from interfering with each other.

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

What is process isolation?

A

Keeping processes separate in memory.

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

What happens if processes share memory?

A

Risk of crashes or security issues.

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

What happens if there’s not enough memory?

A

The OS uses virtual memory (swap).

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

What’s the role of interrupts in multitasking?

A

They allow the OS to take control and switch tasks.

17
Q

What is a queue in scheduling?

A

List of processes waiting for CPU time.

18
Q

What happens if a process never gets CPU time?

A

It’s called starvation.

19
Q

What’s the benefit of process prioritisation?

A

Important tasks run before others.