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

which is best among semaphores and mutexes?

Answer Posted / ankit tripathi

We should always go for mutex lock as compared to semaphore
lock when it comes for a Multithreaded program(exclusion
b/w threads) and when we do not want exclusion b/w process,
the reason is that mutex is not an IPCS and any other
program cannot effect it, moreover you need not to create
an IPC Key and all those stuffs.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pages?

1066


What is interprocess communication in os?

1140


What are differences between ram and rom?

1156


What are the advantages of a multiprocessor system?

1096


Who is the father of operating system?

1041


What are 3 operating systems?

944


Does 64 bit require uefi bios?

989


Explain how a copying garbage collector works. How can it be implemented using semispaces?

1039


What is multi tasking, multi programming and multi threading?

997


What is Throughput, Turnaround time, waiting time and Response time?

1077


Does dual boot affect performance?

1004


Throw some light on internal process memory.

1038


What are the different states of a process?

1138


What is the 4 layer model?

987


What are the advantages of multiprocessor system?

1051