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

Discussion

A kernel object created after start-up in a system that forbids dynamic allocation must be

  • A.created in the flash memory of the device instead of in its RAM
  • B.created and then immediately deleted to release its memory again
  • C.wrapped in a critical section that lasts for its whole lifetime
  • D.given statically declared storage by the caller

Answer: D

Most kernels offer a static variant of each creation call that takes a pointer to memory the application has declared. Nothing is allocated, the call cannot fail for want of memory, and the object's lifetime is the lifetime of the storage.

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

Post your comment

Please log in or register to post a comment.