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

Discussion

The difference between a blocked and a suspended task is that a suspended task

  • A.has a lower priority than every ready task
  • B.has exhausted its stack and cannot continue
  • C.will not run until explicitly resumed, whatever happens
  • D.is waiting for a resource that some other task currently holds

Answer: C

Blocking ends when the awaited event or timeout arrives; suspension ends only when another task or the kernel resumes it. A suspended task will therefore sit through the very event it was waiting for, which is occasionally what is wanted and often a bug.

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

Post your comment

Please log in or register to post a comment.