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

Is it possible to have a deadlock involving only one process?

1095


Can x86 run 64 bit?

1066


How many types of file systems are there?

1091


What is the meaning of Thread Priority?

1157


What is significance of semaphores? What are the different types of semaphores?

1213


What are the different types of process termination?

1159


What is a semaphore? What are the different types of semaphores?

1212


Explain the difference between load-time dynamic linking and run-time dynamic linking?

1184


Explain what are device drivers used for?

1102


What is dynamic scheduling in operating system (os)?

1068


Explain the concept of deadlocks? Why they are used?

1157


What's the difference between x86 and x64?

1117


Which is the fastest operating system?

1055


What happens if we don’t override a run method?

1213


What are the different types of semaphores?

1152