0
30kviews
Explain centralized algorithm for mutual exclusion. What are the advantages and disadvantages of it over distributed algorithm?
1 Answer
written 8.7 years ago by |
In centralized algorithm one process is elected as the coordinator which may be the machine with the highest network address.
Whenever a process wants to enter a critical region, it sends a request message to the coordinator stating which critical region it wants to enter and asking for permission. If no other process is currently in that critical region, the coordinator sends back a reply granting permission, as shown in Fig (a). When the reply arrives, the requesting process enters the critical region.