Computer Science, asked by ShikharB745, 9 months ago

D. what is semaphore? How many type of semaphore? Discuss it.

Answers

Answered by Hani27
1

Answer:

A semaphore can be configured to allow a fixed number of threads to access a resource. Semaphore can also be used as a semaphore. For example if you have multiple process enqueuing data to a queue, and only one task consuming data from the queue.

There are three types of semaphores namely Binary semaphore, Counting semaphore and Mutex semaphore.

Binary semaphore exists in two states. They are Acquired and Released (take and give). Binary semaphores have no ownership and can be released by any task or ISR regardless of who performed the last take operation.

I hope it helps you..

If it helps mark as brianliest answer..

Follow me I'll follow you back...

Similar questions