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

Hi, This question may sound stupid. But I want to know that if the secondary storage device is used to store data on computer, then what is the use of the primary storage in the first place? Why cant we use only one?

2 Answers  


Does a disk cleanup delete everything?

0 Answers  


What are Odm Commands.

0 Answers   IBM,


Difference Between Jfs & Jfs2?

0 Answers   IBM,


Can kernel panic be fixed?

0 Answers  






what is the difference between a soft real time operating system and hard real time operating system?

1 Answers   TATA,


What is the meaning of slosh login in nfs?

0 Answers   3i Infotech,


How can I clean up my computer?

0 Answers  


Which of following is used for back-up files? (a) compress (b) Tar (c) make (d) all the above

1 Answers   Cadence,


How do I clean up my computer to make it run faster?

0 Answers  


What is the fastest computer operating system?

0 Answers  


How can I increase storage on my laptop?

0 Answers  


Categories