Question

In: Computer Science

Consider the four distributed mutual exclusion algorithms Permission Based ---#1: Centralized Mutual Exclusion ---#2: Decentralized Mutex...

Consider the four distributed mutual exclusion algorithms
Permission Based
---#1: Centralized Mutual Exclusion
---#2: Decentralized Mutex Algorithm
---#3: Distributed Mutual Exclusion
#4: A Token Ring Algorithm
Discuss their relative fault tolerance – basically the effect of processor crashes on the
performance of the algorithm. You don’t have to come up with a 1-2-3-4 ordering.

Solutions

Expert Solution

1.Centralized Mutual Exclusion :

a) Single point of failure.

b) Blocking requests mean client processes have difficulty distinguishing crashed coordinatore from long wait.

c) Bottlenecks.

2.Decentralized Mutex Algorithm:

a)More fault tolerant than the Centralized approach.Use DHT approach to locate objects.

b)More robust than the central coordinator approach. If one coordinator goes down other are available.

c)Process may wait a long time to get permission-Possibility of starvation exists.

d) Resource usage drops.

e)High level of contention.

f)Low effeicency.

3. Distributed Mutual Exclusion:

a)Probabilistic algorithms do not guarantee mutual exclusion is correctly enforced.

b)Lots of message traffic,n bottlenecks instead of one.

c)In this voting scheme modification improve the fault tolerance

d)Less robust than centralized mutual exclusion.

e) Problem is crash of any process.

4.Token Ring Algorithm:

1.The only issue in token ring algorithm is lost token and process crash.

2.Starvation is impossible, since no processor will get the token again until every other processor has had a chance.

c) More robust than distributed mutual exclusion.

d)Detecting the lost token and regeneration is difficult.


Related Solutions

Write a program to simulate the Distributed Mutual Exclusion in ‘C’.
Write a program to simulate the Distributed Mutual Exclusion in ‘C’.
What, in your opinion, is the difference in decentralized/distributed (client/server) architecture and centralized (Cloud Computing or...
What, in your opinion, is the difference in decentralized/distributed (client/server) architecture and centralized (Cloud Computing or Mainframe) architecture? Give an example of a business decision that would be affected by the choice of the architecture
Consider various staffing issues such centralized and decentralized staffing, informal and formal networks, and the importance...
Consider various staffing issues such centralized and decentralized staffing, informal and formal networks, and the importance of forming relationships, networks and alliances within the health care delivery system. Describe the importance of these within your role as a future health care manager/leader and identify some key advantages/disadvantages associated with each.
1. How has Amazon responded to the design challenges? (a) Is it centralized or decentralized? How...
1. How has Amazon responded to the design challenges? (a) Is it centralized or decentralized? How do you know? (b) Is it highly differentiated? Can you identify any integrating mechanisms used by Amazon? What is the match between the complexity of differentiation and the complexity of the integrating mechanisms that are used? (c) Is behavior in the organization very standardized, or does mutual adjustment play an important role in coordinating people and activities? What can you tell about the level...
Question Four Explain Peterson’s solution for critical-section problem and show that mutual exclusion is preserved with...
Question Four Explain Peterson’s solution for critical-section problem and show that mutual exclusion is preserved with Peterson’s solution. (Assume there are only two processes P0 and P1)
Compare Disney and Netflix structures. Consider such items as hierarchy, centralized/decentralized, geography, functional/divisional. Include other comparatives....
Compare Disney and Netflix structures. Consider such items as hierarchy, centralized/decentralized, geography, functional/divisional. Include other comparatives. Include a Comments/Notes column for additional thoughts.
using 2 semaphores and 1 mutex: (solve in simple c++ language for linux terminal and add...
using 2 semaphores and 1 mutex: (solve in simple c++ language for linux terminal and add comments please) The barber shop has one barber (a thread), one barber chair, and n chairs for waiting customers (semaphore), if any, to sit on. If there are no customers (each customer is a thread) present, the barber sits down in the barber chair and falls asleep. When a customer arrives, he has to wake up the sleeping barber. If additional customers arrive while...
Group Project Step 1: Select any four sorting algorithm and two searching algorithms Step 2: Understand...
Group Project Step 1: Select any four sorting algorithm and two searching algorithms Step 2: Understand the logic of all the algorithms Step 3: Create java program and use your sorting/searching source codes and integrate it into your main java project. Step 4: Create a separate java class for each algorithm Step 5: Create a random function that generates at least 100000 random integer numbers from 1 to 1 million(No need to print out or store the numbers) Step 6:...
Page Replacement Algorithms. Consider the following page reference stream and 3 page frames: 0 1 2...
Page Replacement Algorithms. Consider the following page reference stream and 3 page frames: 0 1 2 3 2 4 3 1 1 5 2 4 6 3 3 4 6 3 4 7. For the MIN, FIFO, and LRU algorithms, show the contents of the page frame after each reference, and then compute the total number of page faults, divided in to cold misses and other misses.
1. Suppose the returns of a particular group of mutual funds are normally distributed with a...
1. Suppose the returns of a particular group of mutual funds are normally distributed with a mean of 9.7% and a standard deviation of 3.8%. If the manager of a particular fund wants to be sure that his fund is NOT in the bottom 25% of funds with the lowest return, what return must his fund have? (please round your answer to 2 decimal places). 2. Suppose the following data show the prices of 4 cars with similar characteristics that...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT