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

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  

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

8 Answers   Wipro,

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

0 Answers   HP, IBM, Reliance,


5 Answers   IBM,

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,

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  

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 AD/AM in Windows2003?

1 Answers   Accenture, Mphasis, ASD Lab,

What is the impact if DNS Server fails?

2 Answers   Mphasis,

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,

how do u share printer through FTP(fire transfer protocol)?

1 Answers