DEFINITION OF SEMAPHORES:
Semaphores are the protected variables or abstract data types that controls several processes trying to access same resources.
There are two types of semaphores available
1: Binary semaphore :
It is a simple true or false flag that controls access to a single resource.
2: Counting semaphores:
It is counter for the set of available resources.
Semaphores are the protected variables or abstract data types that controls several processes trying to access same resources.
There are two types of semaphores available
1: Binary semaphore :
It is a simple true or false flag that controls access to a single resource.
2: Counting semaphores:
It is counter for the set of available resources.