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???

Answers were Sorted based on User's Feedback



what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???..

Answer / 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

what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???..

Answer / test

semaphores helps is a varible which is used to protect the shared data .hence avoiding the coruption of data by the threads acting simultaniously..

Is This Answer Correct ?    7 Yes 4 No

Post New Answer

More C Interview Questions

What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1;

12 Answers   TCS,


Can we declare function inside main?

0 Answers  


What is a stream water?

0 Answers  


What are void pointers in c?

0 Answers  


#include<stdio.h> { printf("Hello"); } how compile time affects when we add additional header file <conio.h>.

0 Answers  


write a c prog for removing duplicate character from an array and sorting remaining elements using a single array

1 Answers  


What is the difference between array and pointer?

0 Answers  


helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.

3 Answers  


Explain spaghetti programming?

0 Answers  


Why is not a pointer null after calling free?

0 Answers  


Should I learn c before c++?

0 Answers  


write a program in c language to print your bio-data on the screen by using functions.

0 Answers  


Categories