Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 can I increase storage on my laptop?

0 Answers  


Q1. What is an interrupt? How are multiple interrupts dealt with? Q2. Explain the difference between a MONOLITHIC KERNAL and a MICROKERNAL? Q3. List reasons why a Mode switch between threads may be cheaper than a Mode switch between processes. Q4. What is the difference among deadlock avoidance, detection and prevention? Q5. What items of information about a task might be useful in real time scheduling? Q6. Discuss some of the reasons for implementing process migration ? How is the process address space handled during process migration?

1 Answers  


What are different errors encountered while compiling?

0 Answers   TCS,


Can I restore my computer to yesterday?

0 Answers  


any body tell me what are the prob's mostly we face and send some critical prob in real time environment in Solaris and veritas (VXVM,VCS)

0 Answers  


Can you turn on a computer with the keyboard?

0 Answers  


Who started gnu?

0 Answers  


Does a disk cleanup delete everything?

0 Answers  


Explain the term kernel.

1 Answers   Verifone,


Is go garbage collected?

0 Answers  


Is gnu an os?

0 Answers  


what is gr-edge edit?

0 Answers  


Categories