How is process synchronization useful in real life?
Answers
Answered by
1
Let’s say there is no administrator who can create rules on how the persons should use the bathroom. Imagine the chaos created by such a scenario. To maintain the order in the system, we need some kind of rule so that the resources (in our case, the bathroom) are used by the threads (in our case Persons) in a systematic and orderly way. To maintain the order, the administrator defines some kind of mechanism (here in our case, it's say key and bulb). The mechanism by which the things can be done in an orderly fashion can be understood as Synchronization Objects.
Answered by
0
hey!!!
I can give u an example of synchronization in real life...
Like in a school or a college an English teacher is teaching ...the maths teacher of that class cannot teach at the same time or period ...he or she has to wait for the period to get over...
nd then he or she can teach
so we can say that the periods are synchronized one after another for a specific period or time
hope this example helps u
I can give u an example of synchronization in real life...
Like in a school or a college an English teacher is teaching ...the maths teacher of that class cannot teach at the same time or period ...he or she has to wait for the period to get over...
nd then he or she can teach
so we can say that the periods are synchronized one after another for a specific period or time
hope this example helps u
Similar questions