What is a semaphore?
Answer
A semaphore is a variable. There are 2 types of semaphores:
Binary semaphores
Counting semaphores
Binary semaphores have 2 methods associated with it. (up, down / lock, unlock)
Binary semaphores can take only 2 values (0/1). They are used to acquire locks.
When a resource is available, the process in charge set the semaphore to 1 else
0.
Counting Semaphore may have value to be greater than one, typically used to
allocate resources from a pool of identical resources.
More operating system links
Answer -
The kernel is the essential center of a computer operating system, the core
that........
Answer - The basic functions of the OS wrt the process
management are :........
Answer -
A connection used to transfer data between separate processes, usually on
separate computers. ........
|