Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why c is called procedure oriented language?

1060


Why isn't any of this standardized in c? Any real program has to do some of these things.

1223


Are there constructors in c?

1016


What does a function declared as pascal do differently?

1142


What is ## preprocessor operator in c?

1097


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.

1991


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.

2474


Explain what is the benefit of using #define to declare a constant?

1197


Is r written in c?

1162


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.

1690


How can you be sure that a program follows the ANSI C standard?

1617


What does the file stdio.h contain?

1072


What is the purpose of ftell?

1089


Is array name a pointer?

1035


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1164