Interview Questions   Tutorials   Discussions   Programs   

C - what is SEMAPHORES?




310
views
asked sourabh January 4, 2012 02:31 AM  

what is SEMAPHORES?


           

1 Answers



 
answered By sourabh   0  
The critical-section problem could be solved simply in a uniprocessor environment if we could forbid Interrupts to occur while a shared variable is being modified. Unfortunately, this solution is not feasible in a multiprocessor environment. Disabling interrupts on a multiprocessor can be time consuming as the message is passed to all the processors. The solution to the critical- section problems are overcome by using a synchronization tool called a semaphore. A Semaphore is an integer variable that apart from initialization is accessed only through two standards atomic operation Wait and Signal. Literal meaning of signal is to take semaphore and wait means release semaphore
flag   
   add comment

Your answer

Join with account you already have

FF

Preview

 Write A Tutorials
Online-Classroom Classes
www.writeabc.com


  1 person following this question

  Question tags

c × 1

Asked 5 years and 11 months ago ago
Number of Views -310
Number of Answers -1
Last updated
5 years and 11 months ago ago

Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert