:: 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 ate the windows vista interview question? TCS 6
Why did you leave your last job? IBM 2
While Installing The OS Once Copying the Files After that its showing "NTLDR is Missing Press Ctrl Alt Del to Restart" Wat is the Problem?   3
What is the difference between the DVD-R and DVD+R formats? HCL 1
which is athontication protocol ? IBM 4
What is Executive in Windows NT?   2
What experience do you have in this field?   1
What is a full form of RAM ? And what is a work of RAM in a computer device.   2
What are the sub-components of I/O manager in Windows NT?   2
what is the difference between exchange server 2003 and exchange server 2007 Wipro 1
What would a rise in the Local Delivery queue generally mean?   1
what is windows installer?   2
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.   ::