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

Discussion

Static allocation of kernel objects at compile time is preferred in safety-related systems because

  • A.static objects can be placed in flash rather than RAM
  • B.allocation cannot fail at run time
  • C.static objects occupy less memory than dynamic ones
  • D.the kernel then needs no scheduler

Answer: B

A heap allocation that fails halfway through initialisation leaves the system in a state nobody designed, and proving it cannot happen is far easier if there is no heap. Certification standards frequently forbid dynamic allocation after start-up outright.

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

Post your comment

Please log in or register to post a comment.