Mutual Exclusion

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 2

Mutual Exclusion

• Only One Process can be at a time(timestamp) in a critical section (shared


resources)of coordinator process ,,among all processes.
• Many processes are there, and they want to execute .to execute they
need some resources ,these resources are kept in shared resources
section(within critical section) which possible by only getting a shared
resource.
• Problem: at a time, only one process can go inside critical section to
access shared resource. If at a time more than one process access then
Deadlock will happen.
• and to avoid this deadlock, we use mutual exclusion
Critical Section
I t is a section accessible to only one process at a time.
Mutual Exclusion Make Sure that process accessing shared resource or
resources one by one serially.
Using Lamports Algorithm makes mutual exclusion possible.

You might also like