Process Synchronization - Problem 1

preview_player
Показать описание
Operating System: Process Synchronization - Problem 1
Topics discussed:
1. A solved problem on Process Synchronization from GATE 2010.

Music:
Axol x Alex Skrindo - You [NCS Release]

#OperatingSystemByNeso #OperatingSystem #ProcessSynchronization
Рекомендации по теме
Комментарии
Автор

Since S1 and S2 are shared variables, if P1 sets S1=S2, then P2 process while loop (S1!=S2) will not be satisfied. So, P2 can enter to its critical section and there is no other condition that stops it from entering the critical section. So, after entering the critical section it will change S2=not(S1). So, isn't progress also satisfied in this scenario?

himashaminoli
Автор

how we are checking for progress please make me understand?

adarshgautam
Автор

can you please tag deadlock and paging videos or playlist

nagaarjun
Автор

How we say that sir p2 doesn't want to enter critical section

jeevithag
Автор

what if after the line while(s1==s2) in process 1 definition, process 1 enters the critical section and makes some changes to the values of s1 or s2 and gets pre-empted then the condition gets favorable for process p2 to get into it's critical section?
how can we say that mutual exclusion is achieved

shwetayagnik