GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Siemens  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 3 of 35    Print  
Semaphore variable is different from ordinary variable by _______


  
Total Answers and Comments: 1 Last Update: July 22, 2005   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: sachin chakote
 
A semaphore is a special varible that takes only whole positive numbers and upon which only two operations are allowed: wait and signal. They are used to ensure that a single executing process has exclusive access to a resource.  
The operation are  
 
p(SV) for wait 
V(SV) for signal SV- Semaphore variable. 
 
The definition of these two operation are very easy 
p(SV) If SV is greater than zero then decreament SV if becomes zero suspend the execution of the process. 
V(SV) if some other process has been suspended waiting for SV then make if resume execution if no process is suspended waiting for sv then increment it. 
 
 
 
 
 
 
 


Above answer was rated as good by the following members:
sivaranjani..s
July 22, 2005 05:02:22   #1  
sachin chakote        

RE: Semaphore variable is different from ordinary variable by _______
A semaphore is a special varible that takes only whole positive numbers and upon which only two operations are allowed: wait and signal. They are used to ensure that a single executing process has exclusive access to a resource.
The operation are

p(SV) for wait
V(SV) for signal SV- Semaphore variable.

The definition of these two operation are very easy
p(SV) If SV is greater than zero then decreament SV if becomes zero suspend the execution of the process.
V(SV) if some other process has been suspended waiting for SV then make if resume execution if no process is suspended waiting for sv then increment it.








 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Latest Answer : A semaphore is a special varible that takes only whole positive numbers and upon which only two operations are allowed: wait and signal. They are used to ensure that a single executing process has exclusive access to a resource.  The operation are ...

Static variable will be visible in A. Function in which they are defined B. Module in which they are defined C. All the program D. None

Latest Answer : ${DESTDIR} ...


 Sponsored Links

 
Related Articles

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

What happens when a variable is not declared in function definition?

Generally in C program the function definition and calling takes the form as given below: main() { int x,y,z; z=sample(x,y); printf(“%d”,z); } sample(x1,y1) int x1,y1; { int z1; z1= x1 - y1; return(z1); } Here what happens is the values x, y gets passed to x1,y1
 

Data Warehouses Non Technical Issues

Data Warehouses Non Technical Issues When companies get ready to implement a data warehouse few of them pay attention to the political issues that may surround it It must be emphasized that politics can reduce the chances for success with a data warehouse project and I want to warn companies against
 

Variable, Constants and Data types in C++

Variable Constants and Data types in C In this C tutorial you will learn about variable constants and data types in C rules for defining variable name short int int long int float double long double char bool declaring variables and constants mosgoogle Variables A variable is the storage location in
 

Technical Aspects of CRM

Technical Aspects of CRM While it must be emphasized that CRM is not a technology there are a number of technical issues that need to be considered when a company decides to implement a CRM system The first technical issue that needs to be analyzed is scalability In a nutshell the CRM system must be
 

ASP.NET Technical Practice Test

ASP NET Technical Practice Test This article provides details about ASP NET Technical Online Practice Test which is made available at geekinterview com Questions are generated randomly each time you take the test Online Practice Test is made available to everyone you too can take the test and get yo
 

C# Technical Practice Test

C Technical Practice Test This article provides details about C Online Practice Test which is made available at geekinterview com Questions are generated randomly each time you take the test Online Practice Test is made available to everyone you too can take the test and get your score assessed mosg
 

Technical Terms Used in Testing World

Technical Terms Used in Testing World In this tutorial you will learn about technical terms used in testing world from Audit Acceptance Testng to Validation Verification and Testing mosgoogle Audit An independent examination of a work product or set of work products to assess compliance with specifi
 

Technical Writing: It might just be the foot in the door you need

Technical Writing It might just be the foot in the door you need For new computer science graduates or even tried and true professionals the opportunities in IT seem to be few and far between If you re looking to break into the industry need a foot in the door at a large corporation or are possibly
 

Too Much or Too Little: Common mistakes when presenting technical skills in an IT resume

When writing an IT resume the most common mistake is presenting too much or too little information More often than not techies tend to go heavy on the technical information often leaving out key soft skills and other important data mosgoogle When writing an IT resume it s extremely important that te
 

Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape