Critical Section Problem in operating system | Process Synchronization

  Рет қаралды 78,763

Sudhakar Atchala

Sudhakar Atchala

4 жыл бұрын

#CriticalSectionProblem #ProcessSynchronization #operatingsystemlectures
Process Synchronization
Process Synchronization means sharing system resources by processes in a such a way that, Concurrent access to shared data is handled thereby minimizing the chance of inconsistent data. Maintaining data consistency demands mechanisms to ensure synchronized execution of cooperating processes.
Process Synchronization was introduced to handle problems that arose while multiple process executions. Some of the problems are discussed below.
Critical Section Problem
A Critical Section is a code segment that accesses shared variables and has to be executed as an atomic action. It means that in a group of cooperating processes, at a given point of time, only one process must be executing its critical section. If any other process also wants to execute its critical section, it must wait until the first one finishes.
Critical Section Problem
Solution to Critical Section Problem
A solution to the critical section problem must satisfy the following three conditions:
1. Mutual Exclusion
Out of a group of cooperating processes, only one process can be in its critical section at a given point of time.
2. Progress
If no process is in its critical section, and if one or more threads want to execute their critical section then any one of these threads must be allowed to get into its critical section.
3. Bounded Waiting
After a process makes a request for getting into its critical section, there is a limit for how many other processes can get into their critical section, before this process's request is granted. So after the limit is reached, system must grant the process permission to get into its critical section.

Пікірлер: 75
@sujeethgorati7062
@sujeethgorati7062 2 жыл бұрын
Sir, I have immense respect on you. You're sweating and teaching instead of switching on the fan cos, fan's sound will be the disturbance.
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@kamalpulaparthi5847
@kamalpulaparthi5847 Жыл бұрын
Sir ur one of the best teachers I have ever seen….,thank you for all the videos
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
So nice of you. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@Loving_Earth
@Loving_Earth 2 жыл бұрын
Sir please do more videos , ur videos are amazing and I know ur from ap I am happy these knowledgeable lecturer belongs to my state, actually I fell in love with ur teaching sir.
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Ok. Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@user-rk4of2bx1n
@user-rk4of2bx1n 10 ай бұрын
Sir the way of your explaining the topics is very easy to understand and iam watching your videos for external exams. Its very helpfull sir thank you very much 🎉
@SudhakarAtchala
@SudhakarAtchala 10 ай бұрын
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@lasyalv
@lasyalv 3 жыл бұрын
Thank you so much sir. Your videos are helping me a lot in the last moment 😊
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Welcome lasya. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@kapiljetwani3540
@kapiljetwani3540 2 жыл бұрын
Thank you for amazing lectures and discussions! I learned a lot and benefited from your course! Thank you!
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@arushisingh4708
@arushisingh4708 3 жыл бұрын
You're such a fine teacher.
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks Arushi. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@vanithahn9906
@vanithahn9906 3 жыл бұрын
Nice explanation....thank you for your videos sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
You're most welcome
@chandiniraju2487
@chandiniraju2487 4 жыл бұрын
thank u so much sir.
@charishmapadma3802
@charishmapadma3802 2 жыл бұрын
hi sir, your videos are really fantastic, helping me a lot. I have subscribed already and will share with my frnds too. Thanks alot sir.
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Welcome.
@satyaswaroopa153
@satyaswaroopa153 3 жыл бұрын
Great savior#tnx a lot sir
@sat003
@sat003 4 күн бұрын
Sir how come u can explain almost all subjects in engineering 🤔thanks for being as saviour during our exams
@SudhakarAtchala
@SudhakarAtchala 4 күн бұрын
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@harshavardhan4944
@harshavardhan4944 6 ай бұрын
we just write what you teach in vedio sir you are our savior of exams
@SudhakarAtchala
@SudhakarAtchala 6 ай бұрын
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@VennaSatyaVarshaSri
@VennaSatyaVarshaSri 6 ай бұрын
ur the bestest teacher in this world huge respect sir🙇‍♀🙇‍♀
@SudhakarAtchala
@SudhakarAtchala 6 ай бұрын
So nice of you. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@sreeja.k.prajesh4233
@sreeja.k.prajesh4233 Ай бұрын
Thank u sir..... Its very helpful for hsst exams...... Thanks a lot....
@SudhakarAtchala
@SudhakarAtchala Ай бұрын
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@NaseerAhmad-dc7qy
@NaseerAhmad-dc7qy 10 ай бұрын
Nice teaching sir, congratulations fr 1lakh subscribers
@SudhakarAtchala
@SudhakarAtchala 10 ай бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
@joelnada3483
@joelnada3483 3 жыл бұрын
Thank you sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
All the best
@user-xd9yc4ux8t
@user-xd9yc4ux8t 5 күн бұрын
Sir,Can you please make videos of Software Engineering[SE] subject????🙂
@moveforward71
@moveforward71 2 ай бұрын
great work sir thankyou so much!
@SudhakarAtchala
@SudhakarAtchala 2 ай бұрын
So nice of you. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@srithwik2264
@srithwik2264 Жыл бұрын
Best teacher to teach
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@velumaniramasamy1111
@velumaniramasamy1111 2 жыл бұрын
Thank you sir . Very excellent sir
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@velumaniramasamy1111
@velumaniramasamy1111 2 жыл бұрын
Sir I already subscribed your channel.
@Smile-si8xv
@Smile-si8xv 3 ай бұрын
great !! thanks a lot sir :)
@SudhakarAtchala
@SudhakarAtchala 3 ай бұрын
Most welcome! Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@NVANAPALLIANUSHA
@NVANAPALLIANUSHA Жыл бұрын
Thank you so much sir
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@mohan_yerra
@mohan_yerra Жыл бұрын
Huge respect for you sir ❤️🙌
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@purushothamans8174
@purushothamans8174 11 ай бұрын
Thank u sir ❤😊
@SudhakarAtchala
@SudhakarAtchala 11 ай бұрын
Most welcome 😊. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@taurusedits3525
@taurusedits3525 Жыл бұрын
Sir, will only accessing count will be the CSP or accessing shared buffer btw Producer and consumer will also come under CSP?
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Count is shared buffer. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@bablugaming4149
@bablugaming4149 11 ай бұрын
Hats off sir ❤
@SudhakarAtchala
@SudhakarAtchala 11 ай бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@chiranthan5192.
@chiranthan5192. Жыл бұрын
#THANK YOU SIR
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@venkatsaik4696
@venkatsaik4696 3 жыл бұрын
Super sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Plz subscribe to the channel and if possible share with your friends. Thanks
@dhakshinamurthy51
@dhakshinamurthy51 4 жыл бұрын
Tq
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Hai Krishna Kumar, plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
@bhavyasri1919
@bhavyasri1919 11 ай бұрын
Sir please do videos on computer multimedia and animation.... It's my sincere request...
@SudhakarAtchala
@SudhakarAtchala 11 ай бұрын
I will try my best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@pvlakshmipriya5382
@pvlakshmipriya5382 2 жыл бұрын
tq sir
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@kothasainarasimharao5347
@kothasainarasimharao5347 4 жыл бұрын
super sir
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Hai Sai NarasimhaRao, plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
@enrenrumthalapathy2380
@enrenrumthalapathy2380 Ай бұрын
😊
@SudhakarAtchala
@SudhakarAtchala Ай бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@srinivasanthidanda3269
@srinivasanthidanda3269 3 жыл бұрын
Too gd sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
So nice srini vasanthi. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@srinivasanthidanda3269
@srinivasanthidanda3269 3 жыл бұрын
@@SudhakarAtchala kk sir
@adipandey3234
@adipandey3234 Жыл бұрын
Best
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@mamathapadavala1463
@mamathapadavala1463 3 жыл бұрын
Thank you sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Welcome mamatha.
@bhargav5611
@bhargav5611 3 жыл бұрын
Thank you sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Welcome Bhargav. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Peterson's Solution for critical section problem
21:42
Sudhakar Atchala
Рет қаралды 81 М.
The Critical-Section Problem
13:50
Neso Academy
Рет қаралды 300 М.
No empty
00:35
Mamasoboliha
Рет қаралды 3 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 20 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 79 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 26 МЛН
Semaphores in Operating System || Process Synchronization
12:03
Sudhakar Atchala
Рет қаралды 69 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,4 МЛН
Peterson’s Solution
21:31
Neso Academy
Рет қаралды 375 М.
Virtual Memory or Demand Paging or Page Faults in operating systems
12:39
Sudhakar Atchala
Рет қаралды 120 М.
No empty
00:35
Mamasoboliha
Рет қаралды 3 МЛН