semaphore variable is different from ordinary variable by ?

Answers were Sorted based on User's Feedback

semaphore variable is different from ordinary variable by ?..

Answer / suja

semaphore uses one thread .so it can access little slower
than ordinary variable.

Is This Answer Correct ?    12 Yes 2 No

semaphore variable is different from ordinary variable by ?..

Answer / nirmalraj

Semaphore variable is used under 'n' process solutions to
handshake mutual exclusion rule, where as ordinary variable
is used such circumstance is error prone if set that
variable as boolean type even you get problem while setting
value to parent thread.

where n>1

check it out!

Is This Answer Correct ?    6 Yes 4 No

Post New Answer

More Windows Threads Interview Questions


5 Answers   IBM,

can any one know about NIC (National Informatics Centre) questions Patterns and full detail about written exam, and interview send to Thank you

0 Answers   NIC,

if a min thread has finished execution what happens ? a) it exits b) it wait for other threads c) becomes inactive ... etc etc

0 Answers   Honeywell,

In window Xp which are the threads.Actually i wanna know if Ms word is a process which are the threads?Is spell check is a thread? I wanna know in reality which are the threads do they have any name..?

1 Answers   RBI,

Which one you will use to implement critical section?

2 Answers   HCL,

difference between ntfs4 and ntfs5

3 Answers  

Which one is not needed for Multi-program enviornment? 1) virtual memory 2) security 3) time sharing 4) none of the above.

7 Answers   Siemens,

what are the reasons of rebooting the system?

11 Answers   HCL, Mphasis, HP,

Which protocol is working behind DHCP server? and what excatly DORA does?

8 Answers   Wipro,

if thread a,b,c have Max,Min,Normal priorty what is N0. in below set they correspond to.Something like (2,0,1)

0 Answers   Honeywell,

What is the reason for getting the dialouge box( send this error to microsoft giving options as send to microsoft and dont send ) when we abort from the any work when it was struck.

1 Answers   HCL, CTS,

Hi, I'm now using windows 7 in my desktop. I have used a lot of audio recording and editing software but most of then doesn't support the compatibility of win7 and often disturbs. So can anyone tell me which one would be the best audio recording and editing software for win7? Thanks Emanali

1 Answers