← Quiz: Threads and Context Switching: all 10 questions
Quiz: Threads and Context Switching · Question 7 of 10
A context switch takes 5 µs and happens after every 1 ms of useful work. Roughly what fraction of CPU time is lost?
A context switch takes 5 µs and happens after every 1 ms of useful work. Roughly what fraction of CPU time is lost?
- A.About 0.5%
- B.About 5%
- C.About 50%
- D.0%
Answer & explanation
Correct answer: About 0.5%
5 / (1000 + 5) ≈ 0.005.
Can you get the rest right without peeking?
Take the timed Quiz: Threads and Context Switching quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →