semaphore variable is different from ordinary variable by ?
Answers were Sorted based on User's Feedback
Answer / suja
semaphore uses one thread .so it can access little slower
than ordinary variable.
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / nirmalraj
Semaphore variable is used under 'n' process solutions to
handshake mutual exclusion rule, where as ordinary variable
is used such circumstance is error prone if set that
variable as boolean type even you get problem while setting
value to parent thread.
where n>1
check it out!
| Is This Answer Correct ? | 6 Yes | 4 No |
What is the impact if DNS Server fails?
Where is taskkill located?
Which one you will use to implement critical section?
How to update value using threads. Write code?
What is multi programming?
what are the different types of codes in thread in windows os?
Which protocol is working behind dhcp server? And what exactly dora does?
How to stop a thread?
What is thread safety? How do you achieve it?
What is thread injection?
Explain which one you will use to implement critical section?
semaphore variable is different from ordinary variable by ?