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

Discussion

An intermittent fault appears only when two tasks are both busy. The first structure to examine is

  • A.the size of each task's stack
  • B.the tick rate configured in the kernel
  • C.the optimisation level used for the build
  • D.any data the two tasks share without a lock

Answer: D

Correct answer: any data the two tasks share without a lock

A fault appearing only when both tasks are active is the signature of a race, and unprotected shared data is where races live. Stack sizes, tick rate and optimisation level can all cause faults, but none of them would depend on two particular tasks running together.

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

Post your comment

Please log in or register to post a comment.