Тёмный

Classical Problems on Synchronization: Reader-Writer | L 19 | Operating System | GATE 2022 CSE 

Unacademy Computer Science
Подписаться 231 тыс.
Просмотров 28 тыс.
50% 1

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

 

13 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
@saurabhtiwari287
@saurabhtiwari287 3 года назад
Sir, aapke ashirwaad se or aapki guidance se sabka bhala hoga. I guarantee it
@aniketdas3406
@aniketdas3406 11 месяцев назад
If there's someone like me who's struggling to understand how multiple processes can read without allowing any other process to write, it can be explained in this way: When the first reader process enters it decrements the wrt and makes it 0 so that no writer process can execute untill the last reader has done its job and signals wrt. Therefore, after the first reader process, other readers which will try to read concurrently will skip the if(readcount ==1) part since wrt is already decremented by the first read process and write() operations are halted. I hope it helped you :)
@cruelgamer8351
@cruelgamer8351 6 месяцев назад
Okay but why there no code line to restrict readers in writer process
@nirbhaykumarchaubey8777
@nirbhaykumarchaubey8777 Год назад
You Rock, Sir!
@Adityasharma-oe8zp
@Adityasharma-oe8zp 3 года назад
And the guy who connected the tv to headphones was badly injured in confrontation🤣🤣🤣
@krishbhat7466
@krishbhat7466 Год назад
sir initially its written that multiple readers can access the file, but in code only one reader is allowed at a time and other reader wait at mutex. why?
@Aditya-ie8ch
@Aditya-ie8ch Год назад
we can't let mulitple readers access the readcount variable at the same time..thats why we gotta use wait(mutex)..however once the readcount++ is done and signal(mutex) too...other reader can now access the file..so we gotta use preemption at the end of 1st signal(mutex) for multiple readers to be able to read
@codeeasy17
@codeeasy17 10 месяцев назад
Nice explanation
@uddipangoswami8427
@uddipangoswami8427 2 года назад
Sir in writer code why wait mutex is not taken before wait(wrt) ?
@soumilyade1057
@soumilyade1057 2 года назад
cause wrt is a Binary semaphore, and readcount is a regular variable that can have a value of n...
@aspirant8409
@aspirant8409 3 года назад
Start 7:10
@imsurajkumar
@imsurajkumar Год назад
Ready to caught
@difflyfe23
@difflyfe23 4 месяца назад
ready sir
@kajalmondal9745
@kajalmondal9745 3 года назад
♥♥
Далее
Тренеруем память physics drop 103 - 104
00:51
The Readers Writers Problem
15:32
Просмотров 256 тыс.
4.8 Semaphores in Process Synchronization in OS
19:28
Просмотров 741 тыс.