in CO and Architecture retagged by
1,671 views
2 votes
2 votes

difference in following: [i] mutual exclusion [ii] critical section [iii] semaphore

in CO and Architecture retagged by
1.7k views

1 Answer

9 votes
9 votes
Best answer

critical section anything...file,code,memory,register,colddrink,food which is "shared" by two processes..

mutual exclusion...if a process is inside the critical section.....other process shouldnt enter inside...like u r in a washroom..till that time no one should enter..

semaphore...a "variable"...a protected variable on which read modify etc happens automatically in kernal mode....like before entering washroom u have kept a bodygaurd ouside who will prevent others from entering..and when u comes out...it is removed...P and V are the operations to do so...

selected by

1 comment

When examples bare taken from our daily life and become a model or prototype in complex topic , that topic become easy to understand and no one can forget.
0
0

Related questions