Chaitu Tech Bits

what is semaphore ? what is the advantage of semaphore

Wednesday, December 15, 2010

semaphore is a correct way which help operating system to share its source between processors, you can fined more information in professional blogs in operating systems field.



Semaphore is a synchronization tool to solve critical-section problem, can be used to control access to the critical section for a process or thread. The main disadvantage (same of mutual-exclusion) is require busy waiting. It will create problems in a multiprogramming system, where a single CPU is shared among many processes.
Busy waiting wastes CPU cycles.
Deadlock is a situation when two or more processes are waiting indefinitely for an event that can be caused by only one of the waiting processes. The implementation of a semaphore with a waiting queue may result in this situation.

Share/Bookmark

Comments (2)

Loading... Logging you in...
  • Logged in as
what is the best advantage of semaphore
Hi There,

Seems like I won the lottery here….This is a treasure box of blogs and your folks are like leprechauns! Phenomenal read on what is semaphore ? what is the advantage of semaphore !

Are there big opportunities such as jobs by get certified with Linux?
I read multiple articles and watched many videos about how to use this tool - and was still confused! Your instructions were easy to understand and made the process simple.

Kind Regards,
Morgan

Post a new comment

Comments by

Related Posts Plugin for WordPress, Blogger...