:: Home Page            
 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  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Operating Systems >> Windows >> Windows AllOther


 SDK interview questions  SDK Interview Questions (34)
 Windows Threads interview questions  Windows Threads Interview Questions (24)
 Windows General interview questions  Windows General Interview Questions (66)
 Windows AllOther interview questions  Windows AllOther Interview Questions (216)
What is semaphores and why it is used?
 Question Submitted By :: Windows-AllOther
I also faced this Question!!     Answer Posted By  
# 1
semaphores is avariable which is used for restricting
access to shared resources.A semaphore contains a counter
for the number of available resources.Any process which
wants to access the resorse will first check the value of
Is This Answer Correct ?    57 Yes 7 No
Pankaj Huria
# 2
Semaphores are used to make system free from conflicts and
hang. when more than one program are executed
simultaniously then computer hangs and sometimes gives
wrong output so instead to come out from this situation
semaphore is used which takes care for program execution
and manages it.
Is This Answer Correct ?    59 Yes 19 No
Pritesh Parmar
# 3
Semaphores (On UNIX)

• is a synchronization primitive
• is a form of IPC, semaphore is not usedfor exchanging
large amounts of data,as is pipe; but are intended to let
multiple processes synchronize their operations.
Is This Answer Correct ?    14 Yes 8 No
Hajee Mohamed
# 4
On some UNIX® systems, the system administrator can edit
the /etc/master file and define limits for IPC mechanisms
(semaphores, shared memory segments, and message queues).
The problem with this method is that the higher the limits,
the more memory the operating system uses, and performance
can be adversely affected.

AIX uses a different method. In AIX®, upper limits are
defined for the IPC mechanisms, which are not configurable.
The individual IPC data structures are allocated and
deallocated as needed, so memory requirements depend on the
current system usage of IPC mechanisms.

Semaphores 4.3.0 4.3.1 4.3.2 5.1 5.2 5.3 6.1
Maximum number of semaphore IDs for 32-bit kernel 4096 4096
131072 131072 131072 131072 N/A
Maximum number of semaphore IDs for 64-bit kernel 4096 4096
131072 131072 131072 1048576 1048576
Maximum semaphores per semaphore ID 65535 65535 65535 65535
65535 65535 65535
Is This Answer Correct ?    10 Yes 9 No
Hajee Mohamed
# 5
You can also go hrough the video

It explains the cncept of semaphore and mutex or in general
shared resource in a unique way.
Is This Answer Correct ?    1 Yes 0 No
# 6
Is This Answer Correct ?    3 Yes 7 No
# 7
Semaphores are used to manage hangs. they stop your computer from having them ever again isn't that great. 
Is This Answer Correct ?    3 Yes 9 No
# 8
to prevent a deadlock 
Is This Answer Correct ?    6 Yes 18 No

Other Windows AllOther Interview Questions
  Question Asked @ Answers
what differnt between dual core processer and core 2 dual processore   2
IIS server Senario :One company hosted the website in that Active Directory server(No PDC etc..) is down and DNS server is down. weather user was able to access the website if yes how? Cable-Wireless 1
If we open CD-ROM drive then the responce is "please insert cd into drive" What is the problem? Is it with CD-ROM problem of some services problem?how can we solve this problem? HP 6
Name key files or directories on a Windows system that should always be backed up.   2
what is 16 bit,32 bit,64 bit ?   2
what are steps available in system failure?   2
i forget the startup password on Windows XP how to remove? HP 15
i am playing music in winamp and at the same time am typing on ms word.Since the cpu can perform one task at a, how these two task are undergoing simultaneously??   2
describe a mechanism for enforcing memory protection in order to prevent a program from modifying the memory associated with other program   1
Difference between windows and UNIX TCS 3
what service has to run for running printer spooler at the time of startup?   6
which language the data are store in compute. And how the computer known what we tell them.   1
For more Windows AllOther Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright © 2013  All Rights Reserved.   ::