Back to Topic 1.3 — Operating and control systems
1.3.5Computer Science5 flashcards

Multitasking and resources

Practice Flashcards

Flip to reveal answers
Card 1 of 51.3.5
1.3.5
Question

Concurrency or parallelism on a single core?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All 5 Flashcards — Multitasking and resources

Sign up free to track progress and get spaced-repetition review schedules.

Card 1comparison

Question

Concurrency or parallelism on a single core?

Answer

**Concurrency.** Several tasks are in progress but only one executes at any instant. Parallelism needs more than one core.

Card 2process

Question

What happens in a context switch?

Answer

**Save** the running process's registers and program counter, choose the next, **restore** its state, resume it exactly where it stopped.

Card 3concept

Question

Why is a context switch expensive beyond the save and restore?

Answer

The incoming process finds the **cache full of the previous one's data**, so its first memory accesses miss and are slow.

Card 4definition

Question

What are the four conditions for deadlock?

Answer

**Mutual exclusion, hold-and-wait, no pre-emption, circular wait** — all four at once. Break any one and deadlock cannot occur.

Card 5comparison

Question

Deadlock or starvation?

Answer

**Deadlock**: nobody can ever proceed. **Starvation**: the system runs fine but one process never gets a turn — fixed by **ageing**.

Track your progress with spaced repetition

Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.

Start Free