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

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  


What is the impact if DNS Server fails?

2 Answers   Mphasis,


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,


what are the different types of codes in thread in windows os?

0 Answers   HP, IBM, Reliance,


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,






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,


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,


Which one you will use to implement critical section?

2 Answers   HCL,


WHAT IS A DAEMON?

5 Answers   IBM,


when we browse internet system getting 500 error how will you solve the problem ?

4 Answers   TCS,


who among the following is responsible for establishing IS Audit function in the organisation?

0 Answers  


what are the reasons of rebooting the system?

11 Answers   HCL, Mphasis, HP,






Categories