🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.About 0.5%
  2. B.About 5%
  3. C.About 50%
  4. 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 →