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
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What are the disadvantages of c language?
When should a type cast not be used?
Tell me is null always defined as 0(zero)?
What is the function of this pointer?
What is a char in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Explain the advantages and disadvantages of macros.
Tell me what is the purpose of 'register' keyword in c language?
What is sizeof int?
Describe static function with its usage?
Why should I use standard library functions instead of writing my own?
What is s or c?
What is New modifiers?