aımnova
DashboardMy LearningCrash CoursesStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Crash Courses
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Teachers
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aımnova

IB study, practice and feedback built around the real exam.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.c1e448f

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer Science HLTopic 1.3Multitasking and resources
Back to Computer Science HL Topics
1.3.54 min read

Multitasking and resources (Computer Science HL)

IB Computer Science · Unit 1

Your first topic is free to keep

Know exactly what to write for full marks

Practice with exam questions and get AI feedback that shows you the perfect answer — what examiners want to see.

Start Free

Contents

  1. 1Everything at once, on one processor
  2. 2The context switch
  3. 3Allocating the resources
  4. 4Exam-style question
The big idea: A single core runs one instruction at a time. Multitasking is the OS switching between processes so fast that all of them appear to run together.

What looks like simultaneity is rapid switching — and every switch costs real work.
ConcurrencyParallelism
MeansSeveral tasks in progressSeveral tasks executing
NeedsOne core is enoughMore than one core
Achieved bySwitching between themGenuinely at the same instant
A single core givesConcurrency onlyNever parallelism

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime
1

Save

The current process's registers, program counter and flags are written to its process control block — everything needed to resume exactly where it stopped.

2

Choose

The scheduler picks which process runs next, by whatever policy it uses.

3

Restore

That process's saved state is loaded back into the registers.

4

Resume

Execution continues from its program counter. The process cannot tell it was ever stopped.

Switching is not free: Every switch spends time saving and restoring state, and the new process arrives to find the cache full of the previous one's data — so its first memory accesses are slow.

Switch too often and the system spends more time switching than working. That is thrashing.

Get feedback like a real examiner

Submit your answers and get instant feedback — what you did well, what's missing, and exactly what to write to score full marks.

Try AI Tutor FreeYour first topic is free to keep • No credit card required

What the OS is handing out

  • CPU time — divided into slices by the scheduler
  • Memory — each process given its own space, and kept out of everyone else's
  • Devices — one process at a time may hold a printer or a file
  • Files and locks — access serialised so two writers cannot corrupt one file
Resource contention: Resource contention is two or more processes wanting the same resource at the same time: two programs printing, or two writers on one file. The OS makes one wait, which can slow the system and, if waits form a circle, cause deadlock.
Deadlock, and its four conditions: Process A holds the printer and wants the scanner; B holds the scanner and wants the printer. Neither can continue.

It needs all four of: mutual exclusion, hold-and-wait, no pre-emption, and circular wait. Break any one and deadlock becomes impossible — which is how operating systems prevent it.
Starvation is not deadlock: Deadlock: nobody can proceed, ever. Starvation: the system is running fine, but one low-priority process never gets a turn because higher-priority work keeps arriving.

Starvation is fixed by ageing — raising priority the longer a process waits.

How this is tested — you must explain apparent simultaneity as switching, and name what it costs. It comes up two ways:

Paper 1 Section A

  • Explain the role of the OS in multitasking, 3-4 marks
  • Describe what happens in a context switch
  • Distinguish concurrency from parallelism

Paper 1 Section B — case study

  • Explain a deadlock in a scenario
  • Justify why switching has a cost
The classic trap: Saying a single-core computer runs programs "at the same time". It runs one instruction at a time and switches rapidly — that is concurrency, not parallelism.
IB-style questionExplain[5 marks]

A single-core laptop appears to run a browser, a music player and a download at once. Explain how the operating system achieves this and what it costs.

Model answer plan

See the answer broken into clear points, with guidance on how each point earns marks.

Claim your free topic

Try an IB Exam Question — Free AI Feedback

Test yourself on Multitasking and resources. Write your answer and get instant AI feedback — just like a real IB examiner.

what is meant by resource contention, using an example from a computer with several programs running. [2 marks]

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

1.1.1CPU components1.1.2The GPU1.1.3CPU vs GPU1.1.4Primary memory
View all Computer Science HL topics
Improve your exam techniqueCommand terms, paper structure, and mark-scheme tips for Computer Science HL
Previous1.3.4Polling and interruptsNextControl system components1.3.6

3 questions to test your understanding

Reading is just the start. Students who tested themselves scored 82% on average — try IB-style questions with AI feedback.

Start FreeView All Computer Science HL Topics