Interview Questions   Tutorials   Discussions   Programs   

C - what is SEMAPHORES?

asked sourabh January 4, 2012 02:31 AM  



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
   add comment

Your answer

Join with account you already have



 Write A Tutorials
Online-Classroom Classes

  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!