Skills101
← All practice quizzes

Quiz: Threads and Context Switching

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

A practical look at threads — what a thread owns and what it shares, a Python program that shows the difference from a process, user-level vs kernel-level threads, the three threading models, and exactly what a context switch saves and why it costs time.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which of these does each thread of a process have its OWN copy of?

  2. Question 2

    In the Python demo, why did the list stay empty after the child process ran?

  3. Question 3

    In the many-to-one model, what happens when one user thread makes a blocking system call?

  4. Question 4

    Which threading model do Linux and Windows use for ordinary threads?

  5. Question 5

    Which step happens in a process switch but NOT in a switch between threads of the same process?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →