what is the advantage of using SEMAPHORES to ORDINARY
VARIABLES???
Answer Posted / sachin dohre
Working of Semaphore is Atomic i.e till semaphore released
no change in shared memory could occur,, while in case of
variables it could be changed while context switching
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Can you explain the four storage classes in C?
How do you convert strings to numbers in C?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What does dm mean sexually?
What do you mean by command line argument?
Why we write conio h in c?
What is const volatile variable in c?
How many levels deep can include files be nested?
What does %c mean in c?
What is time complexity c?
What are the similarities between c and c++?
What is spaghetti programming?
why do some people write if(0 == x) instead of if(x == 0)?
How to create struct variables?
Where define directive used?