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
Write a Program to find whether the given number or string is palindrome.
What are data structures in c and how to use them?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Is python a c language?
What is a void * in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
#include
What is use of #include in c?
What are the primitive data types in c?
Explain why c is faster than c++?
Is there any possibility to create customized header file with c programming language?
Lists the benefits of c programming language?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
How can I open files mentioned on the command line, and parse option flags?