Тёмный

W6 L7 Semaphores 

Introduction to Operating Systems
Подписаться 7 тыс.
Просмотров 31 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@amanyadav-lz1lf
@amanyadav-lz1lf 7 лет назад
NPTEL videos are amazing. I needed a deep understanding of OS and was having hard time finding the right resources but this definitely helped.
@Sr4116
@Sr4116 4 года назад
I dont understand the problem with mutex. When the 1st process executes and count is 0, then context switching happens and items are added, it will again come to the 1st process, now since reg value is still points to 0, i should go to sleep(full); instruction. But why is it waiting?
@pradhumnkanase8381
@pradhumnkanase8381 4 года назад
will the mutex problem get solved if we replace the following statements - "if(count == 1)" with "if(count >=1)" in producer. "if(count == N-1)" with "if(count
@confuseddreamerr
@confuseddreamerr 5 лет назад
when does the consumer load zero into the 'count', it is global right? so by the time it has a context switch back from producer the value of count should be 1
@wakanda_forever6676
@wakanda_forever6676 4 года назад
In producer-consumer problem code,Why did he declare 2 mutexes empty n full instead it can be done by one mutex only.
@sayalijadhav2466
@sayalijadhav2466 6 лет назад
What is difference between remove the item and consume the item 6:08
@jeanleo3218
@jeanleo3218 7 лет назад
Could you upload your powerpoint please?
@swagatata
@swagatata 6 лет назад
The mutexes full and empty are incorrectly placed. Consumer should block on empty and producer should block on full. This will still work properly but the mutexes could be named better.
@_chappie_
@_chappie_ 5 лет назад
had me confused
@stoka43
@stoka43 2 года назад
Indeed, I confused me. But, I wonder what do we need count for ?
@ayushjindal4981
@ayushjindal4981 3 года назад
essentially
Далее
W6 L2 Synchronization
14:36
Просмотров 28 тыс.
Producer - Consumer Problem in Multi-Threading
25:18
Просмотров 114 тыс.
W6 L6 Mutexes
12:08
Просмотров 22 тыс.
W4 L4 CPU Context Switching
17:00
Просмотров 23 тыс.
The Dining Philosophers Problem
20:16
Просмотров 334 тыс.
W7 L1 Dining Philosophers Problem
21:26
Просмотров 49 тыс.
FANG Interview Question | Process vs Thread
3:51
Просмотров 328 тыс.