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
What is the general form of function in c?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
How can you avoid including a header more than once?
How can I automatically locate a programs configuration files in the same directory as the executable?
What are valid signatures for the Main function?
What is wrong with this declaration?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is the use of gets and puts?
How reliable are floating-point comparisons?
Did c have any year 2000 problems?
What is an lvalue in c?
What is a const pointer?
What is wrong with this initialization?
How do I get a null pointer in my programs?
How many types of operator or there in c?