CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ

Under Linux CFS, two CPU-bound tasks share one CPU: one at nice 0 (weight 1024) and one at nice 5 (weight 335). About what share of CPU does the nice-0 task get?

  1. A. About 67%
  2. B. About 75%
  3. C. About 50%
  4. D. About 83%

Correct answer: B. About 75%

CFS divides time in proportion to weights: 1024 / (1024 + 335) ≈ 0.753. Each nice step changes the weight by about 1.25x, so five steps give roughly a 3:1 split, not a fixed slice per nice level.

More Operating Systems questions

Exams that ask this topic