Difference Between Binary Semaphore and Counting Semaphore

No comments

 Binary Semaphore V/S Counting Semaphore :-

Binary Semaphore
Counting Semaphore
1 . A Binary Semaphore is a semaphore whose integer value range only between 0(busy) and 1(free).
1 . The Counting Semaphore may take any value.
2 . For Binary Semaphore the logic of WAIT(s) should be interrupt as waiting while semaphore variable become equal to free, followed by its invisible setting to BUSY before control is returned to the caller.
2 . No such logic is required.

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀