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

Answer Posted / vinoth

We all know it is an IPC and it is mainly required to have Synchronization of shared memory access among different threads or process.

hmmm .... even mutex does the same thing... They too synchronize the access of the shared memory... then what is the difference..??

semaphore allows n number of users to access the same resources. we go for semaphore only when the resource that can handle some n process/threads at the same time.


Mutex is a semphore with a value 1.


Only one user can access the shared resources at a given time for mutex.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the full form of ipc?

1075


Please describe the initial process sequence while the system boots up?

962


Explain what is the process id for kernel process?

942


What is daemon?

965


What are the various schemes available?

893


What is fork()?

982


What is ln(linking)?

985


Max relax-able permission value with out giving write permission to others?

948


What is unix ipc?

937


Which ipc is faster?

922


Explain how do you execute one program from within another?

915


Explain the advantage of executing a process in background?

870


Please explain fork() system call?

931


Which ipc is the fastest in unix?

921


Explain the system calls used for process management?

911