What is a semaphore?

Answers were Sorted based on User's Feedback



What is a semaphore?..

Answer / dibya jyoti(titanmtp)

Semaphore is a technique in which we can avoid the mutual
exclusion problem.or in other words we say it as the
protected variable(ie.They are used for process sync and
are used to resolve deadlock conditions.)
That means if there are many proceess sharing
a same resources then other process must wait it until the
process in critical section is completed as the process in
critical section is completed its send a signal to the
other process to enter a critical section.
basically it is done in two types
1*General semaphore or (counting semaphore)
2*Binary semaphore or (Mutex)

Is This Answer Correct ?    2 Yes 2 No

What is a semaphore?..

Answer / 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

What is a semaphore?..

Answer / sri

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 ?    0 Yes 0 No

What is a semaphore?..

Answer / priya

Semaphore is a Variable or abstract data type that provide a simple but useful abstraction for controlling access by multiple processes to common resourse in a parallel programming or multiuser environment.
semaphore is as a record of how many units of a perticular resources are available.

Is This Answer Correct ?    0 Yes 0 No

What is a semaphore?..

Answer / alladiya qureshi

it is the share global variable,it can be implemented as
integer or a structure and this semaphore variable will be
used for synchronization.there are two function used to
excess the value of semaphore variable -
1.wait semaphore
2.signal semaphore

Is This Answer Correct ?    0 Yes 0 No

What is a semaphore?..

Answer / muthukumar

semaphore is mutual execution problem presented in the last
section are not easy to more complex problems.
Semaphore is a Only Non Negative integer variable.
semaphore initialized value in 1.
Semaphore only Through Two Standard atomic Operation
P(wait)
s=s-1

and
V(signal)
s=s+1

Is This Answer Correct ?    4 Yes 5 No

What is a semaphore?..

Answer / omkar singh

A semaphore s is an integer value that apart from initialization accessd only through the two standard opereation wait() and signal(). A semaphore s played an important role where shared resources are used. the main objective of the semaphore is to maintain mutual exclusion and provide a solution for critical section problem.

Is This Answer Correct ?    0 Yes 1 No

What is a semaphore?..

Answer / addy thompson

semaphore is set of rules of SEX...

it derived from the Latin word SEXAPHORE which means doing sex with multiple person.
thank you

for more inquiry please add me on facebook
my id is "bestattitude007@gmail.com"

Is This Answer Correct ?    2 Yes 5 No

What is a semaphore?..

Answer / rupam quila

The semaphore abstract data type is perhaps the simplest
universally useful implementation of the variables uses as
arguments to the wait and signal operations although there
are many implementations of semaphores, they can be
intuitively thought of as integers, where wait(x) or the
object-orinted x.wait waits until x is greater then zero
and then decrements it, and signal(x)or x.signal increments
x.

Is This Answer Correct ?    5 Yes 16 No

What is a semaphore?..

Answer / sankar

semopore is s\w

Is This Answer Correct ?    18 Yes 105 No

Post New Answer

More Operating Systems AllOther Interview Questions

How do I free up disk space?

0 Answers  


Is 6 cores enough for streaming?

0 Answers  


What should I consider when buying a laptop?

0 Answers  


What is the name of first operating system?

0 Answers  


When I press power button on laptop nothing happens?

0 Answers  






what is memory managemant in Win95

0 Answers  


Assuming one link of the Trojan horse copy-and-observe-later chain is broken. There are two other possible angles of attack by Alice: Alice logging on and attempting to read the string directly, and alice assigning a security level of sensitive to the back-pocket file. Does the reference monitor prevent these attacks?

0 Answers  


Can I close my computer while updating?

0 Answers  


What do you know about the latest android version Lollipop?

0 Answers   Akamai Technologies,


How do you crash a computer?

0 Answers  


what is ms configure?

0 Answers  


What Command To Restore Backup Of Non - Rootvg?

0 Answers   IBM,


Categories