首页 > 试题广场 >

Your company is building a com

[问答题]

Your company is building a computer network,and you are asked to write an algorithm for achieving distributed mutual exclusion.Which scheme will you use? Explain your choice.

推荐

The options are a (1) centralized,(2) fully -distributed,or (3) token-passing approach.We reject the centralized approach as the centralized coordinator becomes a bottleneck.We also reject the token-passing approach for its difficulty in re-establishing the ring in case of failure.

We choose the fully-distributed approach for the following reasons:

Mutual exclusion is obtained.

Freedom from dead lock is ensured.

Freedom from star ation is ensured,since entry to the critical section is scheduled according to the timestamp ordering.

The number of messages percritical-sectionentry is 2 × (n- 1).

This number is the minimum number of required messages per critical-section entry when processes act independently and concurrently.

发表于 2018-03-25 10:14:24 回复(0)