Answer Posted / selvakumar
"Mutexes are typically used to serialise access to a
section of re-entrant code that cannot be executed
concurrently by more than one thread. A mutex object only
allows one thread into a controlled section, forcing other
threads which attempt to gain access to that section to
wait until the first thread has exited from that section."
"A semaphore restricts the number of simultaneous users of
a shared resource up to a maximum number. Threads can
request access to the resource (decrementing the
semaphore), and can signal that they have finished using
the resource (incrementing the semaphore)."
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What is property type c?
Is fortran faster than c?
Why does notstrcat(string, "!");Work?
What is pre-emptive data structure and explain it with example?
i want to know the procedure of qualcomm for getting a job through offcampus
What are structures and unions? State differencves between them.
Can we use visual studio for c?
develop algorithms to add polynomials (i) in one variable
what is reason of your company position's in india no. 1.
How do you print only part of a string?
What is static volatile in c?
using only #include
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is substring in c?
What is ponter?