semaphore variable is different from ordinary variable by ?




Answers were Sorted based on User's Feedback



Answer / suja

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

Is This Answer Correct ?    12 Yes 2 No

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

WHAT IS A DAEMON?

5 Answers   IBM,


What is the impact if DNS Server fails?

2 Answers   Mphasis,


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 are the reasons of rebooting the system?

11 Answers   HCL, Mphasis, HP,


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

0 Answers  






1.Can anyone tell how to install os manually? and is there any problem to install os? 2. Can anyone tell how to resolve the blue screen error to install os

6 Answers   Wipro,


Purposes, features and functions of windows 98 and xp. i am struggling with this because i have to compare their strenths and weaknesses, please can i get help?

0 Answers  


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  


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,


cannot copy (file name)- access is denied,

4 Answers  


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,


difference between ntfs4 and ntfs5

3 Answers  






Categories