Answer Posted / aditya singh
In programming, especially in Unix systems, semaphores are a
technique for coordinating or synchronizing activities in
which multiple processes compete for the same operating
system resources. A semaphore is a value in a designated
place in operating system (or kernel) storage that each
process can check and then change. Depending on the value
that is found, the process can use the resource or will find
that it is already in use and must wait for some period
before trying again. Semaphores can be binary (0 or 1) or
can have additional values. Typically, a process using
semaphores checks the value and then, if it using the
resource, changes the value to reflect this so that
subsequent semaphore users will know to wait.
Semaphores are commonly use for two purposes: to share a
common memory space and to share access to files. Semaphores
are one of the techniques for interprocess communication
(IPC). The C programming language provides a set of
interfaces or "functions" for managing semaphores.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
1) What is an Virtual memory? 2) How do we test API's in both Windows/Linux/Unix? 3) What is an IOCTL? 4) How do you open a char device through API's? 5) What is major num/ minor num? 6) What is the max num for minor num? 7) Who gives you the major / minor numbers? 8) Reverse a string using recursive func. 9) fork/vfork/clone. 10) What does fork returns? 11) What is a zombie process? 12) What happens when a child completes before parent tries to wait for it? 13) Interrupt handlers, top-hdnl....?
What is the first operating system in the world?
Is i3 good for gaming?
Which one is the first operating system?
What is the best free operating system?
How To Lock A User's Account?
discuss the procedures to evaluate disk excess time
What does download with adm mean?
What does the g in gnu stand for?
Why is android better than ios?
Is chrome os better than windows 10?
How do I clean up and speed up my laptop?
What is the latest android operating system?
Dear All, When the patches are installed in the server OS, how will we know that which patch is the latest patch?
How do I make a pdf file on my laptop?