What is semaphone?
Submitted by: Administratora 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.
Submitted by: Administrator
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.
Submitted by: Administrator
Read Online Unix IPC Job Interview Questions And Answers
Top Unix IPC Questions
☺ | What is Daemon? |
☺ | Explain a zombie? |
☺ | What are the system calls used for process management: |
☺ | How to write the program on full-duplex communication on bidirectional(e.g using two pipes)? |
☺ | What is an advantage of executing a process in background? |
Top OS Unix Categories
☺ | Unix IPC Interview Questions. |
☺ | Unix General Interview Questions. |
☺ | Unix System Calls Interview Questions. |
☺ | Unix Threads Interview Questions. |