Critical Section Problem in operating system | Process Synchronization

preview_player
Показать описание
#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.
Рекомендации по теме
Комментарии
Автор

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.

sujeethgorati
Автор

Sir ur one of the best teachers I have ever seen…., thank you for all the videos

kamalpulaparthi
Автор

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.

Loving_Earth
Автор

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 🎉

RamaKrishna-rf
Автор

ur the bestest teacher in this world huge respect sir🙇‍♀🙇‍♀

VennaSatyaVarshaSri
Автор

Thank you so much sir. Your videos are helping me a lot in the last moment 😊

lasyalv
Автор

we just write what you teach in vedio sir you are our savior of exams

harshavardhan
Автор

Thank you for amazing lectures and discussions! I learned a lot and benefited from your course! Thank you!

kapiljetwani
Автор

Sir, you are helping us alot
Thank you from my bottom of my heart❤🍂✨

suryaworld
Автор

Sir, thankyou very much for explaining the complex topic in simplest way to understand. Thank you for your efforts 😊 towards us❤

shivamanigudelli
Автор

Nice explanation....thank you for your videos sir

vanithahn
Автор

Sir, ma clg lo sir's kuda me videos a send chese chudamantunnaru.. 😅
3hrs lo os concepts anni chusa..
Scored 80 !

sai_madhav____
Автор

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.

charishmapadma
Автор

Nice teaching sir, congratulations fr 1lakh subscribers

NaseerAhmad-dcqy
Автор

Thank u Its very helpful for hsst Thanks a lot....

sreeja.k.prajesh
Автор

Sir how come u can explain almost all subjects in engineering 🤔thanks for being as saviour during our exams

mouni_
Автор

Thank you sir 🥹meku eppatiki runapadiuntamu oka student ga 😊

ThotaSaisri
Автор

Sir, Can you please make videos of Software Engineering[SE] subject????🙂

Archana_Chotu
Автор

Sir please do videos on computer multimedia and animation.... It's my sincere request...

bhavyasri
Автор

Sir, will only accessing count will be the CSP or accessing shared buffer btw Producer and consumer will also come under CSP?

taurusedits