Spin Lock vs Mutex vs Binary Semaphore vs Counting Semaphore in Operating System

preview_player
Показать описание

In this video, we first look at the difference between spin lock and mutex. Then we look at differences between mutex and binary semaphore. Also, we look at use cases of each one of them.

Semaphore in operating system
Mutex in operating system
Mutex vs semaphore
Mutex vs Binary semaphore
Mutex vs Spinlock

#operatingsystem #processmanagement #semaphore #mutex #binarysemaphore #countingsemaphore #gate #interviews
Рекомендации по теме
Комментарии
Автор

thanks for making this video! it cleared a lot in my head.

ManolyaATALAY
Автор

if semaphore is not able to do mutual exclusion then how can it helps in process synchronization ??

focusman
Автор

But if we initialize semaphore to a value of 1...It can be used to solve the Critical section problem right?

sahilkalamkar
Автор

So u mean to say, if u use mutex as a solution then the waiting process will sleep till the process exit CS, but it does not have any impact on the total execution time. right ?

utsavaggarwal_ds
Автор

Can u give any c example to understand this all concept

inspirationalthing
visit shbcf.ru