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
How reliable are floating-point comparisons?
Explain the difference between call by value and call by reference in c language?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Lists the benefits of c programming language?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
How can I change the size of the dynamically allocated array?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What is the correct declaration of main?
What is the sizeof () a pointer?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
How do you define a function?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
What does c mean?
Explain what are global variables and explain how do you declare them?
Explain the use of bit fieild.