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

Tell me set-user-id is related to (in unix)?

916


Please explain fork() system call?

993


What is unix ipc?

1015


Explain how do you execute one program from within another?

972


Explain what is the process id for kernel process?

997


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

1014


How to write the program on full-duplex communication on bidirectional?

1038


Which ipc is the fastest in unix?

1000


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

1016


What is fork()?

1037


What are the various schemes available?

960


Explain the advantage of executing a process in background?

935


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

963


Explain about daemon?

1029


What is daemon?

1037