Difference Between Binary Semaphore and Counting Semaphore
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.
|
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment