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

Discussion

Match the construct with the problem it solves.

1. Mutex   2. Counting semaphore   3. Message queue

P. Passing data between tasks   Q. Mutual exclusion with ownership   R. Counting available instances of a resource

  • A.1-Q, 2-P, 3-R
  • B.1-P, 2-R, 3-Q
  • C.1-Q, 2-R, 3-P
  • D.1-R, 2-Q, 3-P

Answer: C

Choosing the wrong one of the three is the commonest structural mistake in a first kernel design: a mutex used for signalling, or a semaphore used where ownership was needed. Each answers a different question and none substitutes for another.

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

Post your comment

Please log in or register to post a comment.