What is the difference between mutex and semaphore?
Answer Posted / swetcha
The only real difference between a Semaphore and a Mutex is
that a Semaphore can have a count > 1. While a mutex will
only let one owner attempt access, a Semaphore can be
assigned a number and allow "x" number of threads access.
..........Let me know if it's wrong!
| Is This Answer Correct ? | 31 Yes | 18 No |
Post New Answer View All Answers
Define trashing?
How do I check for memory leaks?
When an input file is opened, what are the possible errors that may occur?
What is the meaning of busy spin in multi-threading?
When does trashing occur?
Can I use x86 on 64bit?
Which event determines that all the controls are completely loaded into memory?
List advantages and disadvantages of dynamic memory allocation vs. static memory allocation.?
When does stack (process stack) overflow? What are the remedies?
What is the purpose of the command interpreter? Why is it usually separate from the kernel?
What is sock_seqpacket?
What is the Difference between a process and a thread?
Can chkdsk get stuck?
Can bad sectors cause blue screen?
What are the 5 stages of chkdsk?