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 are the general description for loop statement and available loop types in c?
Is it acceptable to declare/define a variable in a c header?
main() { printf("hello"); fork(); }
What are loops c?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
Explain the meaning of keyword 'extern' in a function declaration.
What happens if header file is included twice?
What is the purpose of main( ) in c language?
What is wrong with this program statement?
What kind of structure is a house?
How do I get an accurate error status return from system on ms-dos?
How to implement a packet in C
When should a type cast be used?
Why c language is called c?
What is the use of a conditional inclusion statement in C?