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

Discussion

A counting semaphore holds

  • A.a count of available instances of a resource
  • B.the identity of whichever task most recently acquired it
  • C.a queue of the messages waiting to be delivered to a task
  • D.a bitmap recording which of several events have occurred

Answer: A

Taking it decrements the count and blocks at zero; giving it increments the count and may release a waiter. Three identical buffers or four channels of a converter are the natural cases, the count being initialised to the number available.

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

Post your comment

Please log in or register to post a comment.