Daljeet12
Member level 4
I am trying to understand what is semaphore in any operating system ?
In multitasking Tasks can share resource such as CPU time, memory, data etc
a semaphore is a variable or abstract data type used to control access to a common resource by multiple threads and avoid critical section problems in a concurrent system such as a multitasking operating system
In multitasking Tasks can share resource such as CPU time, memory, data etc