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

Explain what is the process id for kernel process?

1040


Which ipc is faster?

1037


What is fork()?

1097


Explain linking across directories?

1009


What is ipc in unix?

1059


Explain the initial process sequence while the system boots up?

1015


How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?

1053


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

1074


Explain about daemon?

1071


What is i-node numbers?

1218


Explain how do you execute one program from within another?

1019


What is the condition required for dead lock in unix system?

1021


What is daemon?

1085


Explain the advantage of executing a process in background?

978


What is ln(linking)?

1084