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

Discussion

A kernel's high-water mark for a task reports

  • A.the least stack space that has remained free since it started
  • B.the greatest number of times the task has been preempted
  • C.the longest execution time the task has recorded
  • D.the deepest queue occupancy the task has produced

Answer: A

The kernel examines how far the sentinel pattern has been overwritten and reports the worst case seen so far, which is exactly what is needed to size a stack with confidence. A figure that never moves after start-up usually means the deep path has not yet been exercised.

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

Post your comment

Please log in or register to post a comment.