counting semaphore question

Shiva Shankar klshiva4a4 at
Mon Feb 15 01:47:23 EST 2016

Hi all,
Can you anyone tell me what is the exact use of counting semaphore in
kernel ?

When should we use it ? what is the practical usage of counting semaphores
Linux kernel ?

I have seen only mutex (Binary semaphore)is used  for synchronization not
the counting semaphore(count >1).

Any sugguestions would be appreciated

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Kernelnewbies mailing list