1.

What Is Semaphore? What Are The Types Of Semaphore?

Answer»

Semaphore is an abstract data store which is used to control the resource accesses across the different threads of execution or across different processes.

There are basically two types of semaphores:

  • Binary semaphore which can take only 0, 1 values. (Used when there is contention for a single resource entity).
  • Counting semaphore which can take INCREMENTAL values to a CERTAIN limit (used when a NUMBER of RESOURCES is limited).

Semaphore is an abstract data store which is used to control the resource accesses across the different threads of execution or across different processes.

There are basically two types of semaphores:



Discussion

No Comment Found