what is the advantage of using SEMAPHORES to ORDINARY
VARIABLES???

Answer Posted / test

semaphores helps is a varible which is used to protect the shared data .hence avoiding the coruption of data by the threads acting simultaniously..

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I split up a string into whitespace-separated fields?

571


Explain how do you list files in a directory?

618


how to find binary of number?

3439


How can I manipulate individual bits?

608


What is the c value paradox and how is it explained?

575






Can we increase size of array in c?

542


how do you programme Carrier Sense Multiple Access

1518


Can you subtract pointers from each other? Why would you?

558


FILE PROGRAMMING

1779


What is huge pointer in c?

585


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

2655


Why functions are used in c?

587


which is an algorithm for sorting in a growing Lexicographic order

1394


What is a nested loop?

651


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1259