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 #ifdef ? What is its application?
What is the use of a ‘ ’ character?
What is the difference between #include and #include 'file' ?
How do I get an accurate error status return from system on ms-dos?
Why is c so important?
How important is structure in life?
What are terms in math?
What is extern variable in c with example?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What is the -> in c?
What are the various types of control structures in programming?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is the difference between class and object in c?