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.
what is semaphore ? what is the advantage of semaphore
Wednesday, December 15, 2010
About Author
I am Chaitanya , Working As Sr.Software Engineer on Embedded.I am Here to Share My Experience with You people. Coz I believe
In today's environment, hoarding knowledge ultimately erodes your power. If you know something very important, the way to get power is by actually sharing it.Contact Me At embeddedchaitu007@gmail.com.
what is semaphore ? what is the advantage of semaphore
2010-12-15T15:14:00+05:30
Unknown
operating system interview questions|
Subscribe to:
Post Comments (Atom)