What is semaphone?

Answer Posted / e.sridhar reddy

a semaphor is nothing but a term used in unix for a
variable which acts as a counter.for instance there may be
times when two processes try to access the same file
simultaneously.in this event we must control the access of
the when the other process is accessing
this is done by assigning value to a semaphore.
the value of the semaphore is initialized by the 1st
process when the file is in access by it.when the 2nd
process try to access the file it checks the value of the
semaphore and if it finds the value as initialized it does
not access the file.

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain linking across directories?

703


What is unix ipc?

734


What is the full form of ipc?

844


What is ln(linking)?

771


Explain what is the process id for kernel process?

753


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

764


What is i-node numbers?

809


What are the various schemes available in ipc?

710


Explain about daemon?

765


Explain what are the system calls used for process management?

696


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

735


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

726


Which ipc is the fastest in unix?

747


Explain how do you execute one program from within another?

710


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

764