ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Operating Systems AllOther
 
 


 

 
 Windows interview questions  Windows Interview Questions
 Linux interview questions  Linux Interview Questions
 Unix interview questions  Unix Interview Questions
 Solaris interview questions  Solaris Interview Questions
 RTOS interview questions  RTOS Interview Questions
 Bulnex interview questions  Bulnex Interview Questions
 Operating Systems General Concepts interview questions  Operating Systems General Concepts Interview Questions
 Data Structures interview questions  Data Structures Interview Questions
 Operating Systems AllOther interview questions  Operating Systems AllOther Interview Questions
Question
What is a semaphore?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is a semaphore?
Answer
# 1
Semaphores r software, blocking, OS assistance solution to 
the mutual exclusion problem .It is
basically a non-negative integer variable that saves the 
number of wakeup signals sent so they are not lost if the 
process is not sleeping 

another interpretation is that the semaphore value 
represents the number of resources available 
 
Is This Answer Correct ?    1 Yes 0 No
Swetcha
[Semanticspace]
 
  Re: What is a semaphore?
Answer
# 2
Semaphore is a machanism to resolve resources conflicts by
tallying resource seekers what is the state of sought
resources, achieving a mutual exclusive access to resources.
Often semaphore operates as a type of mutual exclusive
counters (such as mutexes) where it holds a number of access
keys to the resources. Process that seeks the resources must
obtain one of those access keys, one of semaphores, before
it proceeds further to utilize the resource. If there is no
more such a key available to the process, it has to wait for
the current resource user to release the key.
 
Is This Answer Correct ?    1 Yes 0 No
Kwrtos
 
 
 
  Re: What is a semaphore?
Answer
# 3
A semaphore, a new variable type.
A semaphore could have the value 0,indicating that no 
wakeups were saved, or some positive values if one or more 
wakeups were pending.
a semaphore s is an integer variable that apart from 
initialization, is accesssed only through two standard 
atomic operations, wait and signal. these operations were 
orignially termed p(for wait to test) and v(for signal to 
increment).
The classical defination of wait in psedocode is
wait(s)
{
while(s<=0)
;// no-op
s--;
}
The classical defination of signal in psedocode is
signal(s)
{
s++;
}
Modification to the integer value of smaphore in wait and 
signal operations must be executed individually.
that is, when one process modifies the semaphore value no 
other process can simultaneously modifiy that same 
semaphore value.
 
Is This Answer Correct ?    2 Yes 0 No
Jethva_trupti
[Avani Cimcon Technologies Ltd.]
 
  Re: What is a semaphore?
Answer
# 4
semopore is s\w
 
Is This Answer Correct ?    1 Yes 1 No
Sankar
 

 
 
 
Other Operating Systems AllOther Interview Questions
 
  Question Asked @ Answers
 
How does the scheduler know the time how it should be scheduled. Motorola1
Which of following is used for back-up files? (a) compress (b) Tar (c) make (d) all the above Cadence1
DMA - abbrevation (Direct Memory Access,Discrete memory Access,Disk memoryaccess) Mascot3
Can I install the Operating System in USB Poratable Drive in 250 or 120GB? IBM1
What operating systems provide threads?  4
MY system is showing "BOOT FAILURE:SYSTEM HALTED" after restarting the system please give me the solution for this problem thanking you........... ITC-Infotech1
Virtual memory size depends on [a] address lines [b] data bus [c] disc space [d] a & c [e] none Wipro6
In the process table entry for the kernel process, the process id value is a) 0 b) 1 c) 2 d) 255 e) it does not have a process table entry IBM1
Method used for Disk searching.. a.linked list b.AVL c.B-tree d. binary tree Hughes3
One solution for deadlock prevention for dining philosopher's problem Hughes2
One Gigabyte =?( 2 power30 , 2 power 20 ,2 power 10 none) Mascot2
What is a semaphore? Motorola4
which one of following is not memory management model? choices are buddy system, monitors, paging, swapping Hughes4
What is deadlock? How do you avoid it? Motorola2
What is TSY? Samsung3
what are Prerequisites to Install Active Directory in windows 2000 server? ISL2
 
For more Operating Systems AllOther Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com