what is semaphore in operating system in english

Channel:
Subscribers:
1,180
Published on ● Video Link: https://www.youtube.com/watch?v=k1MN6MbyQJ0



Duration: 1:50
136 views
0


Semaphore

In computer science, a semaphore is a variable or abstract data type used to control access to a common resource by multiple processes in a concurrent system such as a multiprogramming operating system.
A trivial semaphore is a plain variable that is changed (for example, incremented or decremented, or toggled) depending on programmer-defined conditions. The variable is then used as a condition to control access to some system resource.
A useful way to think of a semaphore as used in the real-world systems is as a record of how many units of a particular resource are available, coupled with operations to adjust that record safely (i.e. to avoid race conditions) as units are required or become free, and, if necessary, wait until a unit of the resource becomes available. Semaphores are a useful tool in the prevention of race conditions; however, their use is by no means a guarantee that a program is free from these problems. Semaphores which allow an arbitrary resource count are called counting semaphores, while semaphores which are restricted to the values 0 and 1 (or locked/unlocked, unavailable/available) are called binary semaphores and are used to implement locks.
The semaphore concept was invented by Dutch computer scientist Edsger Dijkstra in 1962 or 1963,and has found widespread use in a variety of operating systems. It has also been used as the control mechanism for I/O controllers, for example in the Electrologica X8 computer.




Other Videos By Sai Views


2017-06-29jumanji welcome to the jungle Actress karen gillan
2017-06-29jumanji welcome to the jungle trailer reaction video|| Jumanji 2 Dwayne Johnson,Karen Gillan
2017-06-27Nasa dismisses report that alien life announcement is imminent
2017-06-27Things You Probably Didn't Know about Julia Roberts
2017-06-27किस तरह के व्यवसाय में GST Registration लेना पड़ता हैं?Registration बिना व्यवसाय नहीं किया जा सकता?
2017-06-27GST में Composition Scheme क्या हैं? इसके लिए कौन Eligible हैं?
2017-06-27GST में E-Way Bill क्या हैं? ई-वे कब और कैसे जारी किया जाएगा?
2017-06-26Elon Musk’s SpaceX launches two rockets
2017-06-26Coffman's conditions that lead to a deadlock?what is conditions for a deadlock.
2017-06-26what is thrashing in operating system in english
2017-06-26what is semaphore in operating system in english
2017-06-26Reentrancy
2017-06-26Bélády's anomaly
2017-06-26Yoga Pants Selfi compilation
2017-06-26senran kagura peach beach splash costumes
2017-06-25• Sherilyn Fenn Posed for perfume and clothing ads before becoming an actress.
2017-06-25Shannon Purser Upcoming Star
2017-06-25Elon Musk on Mission to Link Human Brains with Computers in 4 Years
2017-06-25Joey King is a real Hollywood Actress
2017-06-24NASA launches World’s Lightest(64 grams )3-D printed Satellite designed by Indian Student
2017-06-24Department of Science and Technology launched VAJRA Scheme(Visiting Advanced Joint Research)



Tags:
what is semaphore in operating system in english
semaphore
operating system
binary semaphores
counting semaphores