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
Why c is called procedure oriented language?
Why isn't any of this standardized in c? Any real program has to do some of these things.
Are there constructors in c?
What does a function declared as pascal do differently?
What is ## preprocessor operator in c?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Explain what is the benefit of using #define to declare a constant?
Is r written in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
How can you be sure that a program follows the ANSI C standard?
What does the file stdio.h contain?
What is the purpose of ftell?
Is array name a pointer?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions