Machine-translated by Google. Questions are authored in English.
Top

Discussion

The reason a kernel is usually configured with a fixed number of priorities rather than an unlimited range is that

  • A.the hardware supports only a fixed number of levels
  • B.tasks cannot usefully be distinguished beyond eight levels
  • C.the scheduler's data structures are sized by that number
  • D.an unlimited range would make the switch non-deterministic

Answer: C

One ready list per level, and often one bit per level in a lookup word, is what the count buys in RAM. The scheduler itself finds the highest ready level in constant time whether there are eight levels or two hundred and fifty-six.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.