CS FundamentalsHardGATE CS

A server uses a fixed pool of 8 worker threads, and each request does a blocking database call taking 90% of its time. Roughly how many threads are needed to keep 4 cores busy?

  1. A. About 4
  2. B. About 8
  3. C. About 400
  4. D. About 40

Correct answer: D. About 40

Each thread uses the CPU only 10% of the time, so cores × 1/(1 − 0.9) = 4 × 10 = 40 threads keep them busy (ignoring overhead).

More Operating Systems questions

Exams that ask this topic