Write a C Program for use of semaphones in Opearting System.
Theory
Semaphores are integer variables used to solve the critical section problem by using two atomic operations, wait and signal that are used for process synchronization.
Program Code
Input:
Enter a number: 10
Output:
Child Process
Enter a number: 10
Parent Process - Accesing