:: 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 is the difference between dual core and core 2 duo? Wipro 4
What is Executive in Windows NT?   2
Can I edit Schema....? IBM 2
Logical Diagram of Active Directory? What is the difference between child domain & additional domain server? CTS 9
What is the difference between Hub and Switch? AZTEC 5
What is Proxy and proxy server Wipro 3
How do we take the backup of the mailbox for the single user. Alcatel 1
What we have to do when receiving some error dialog boxes after booting the system?(Error like ravmond.exe,DONTRUN.exe etc). how can we prevent them from appearing?   1
Write Hirarchy of ADS...? IBM 2
Ntfldr.exe is missing in win xp os what will you do? IBM 5
what are steps available in system failure?   2
What is difference between shadow copy and backup?   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.   ::