A More Efficient Message-Optimal Algorithm for Distributed Termination Detection

  • Authors:
  • Ten-Hwang Lai;Yu-Chee Tseng;Xuefeng Dong

  • Affiliations:
  • -;-;-

  • Venue:
  • IPPS '92 Proceedings of the 6th International Parallel Processing Symposium
  • Year:
  • 1992

Quantified Score

Hi-index 0.00

Visualization

Abstract

Termination detection is a fundamental problem in distributed computing. Many algorithms have been proposed, but only the S. Chandrasekaran and S. Venkatesan (CV) algorithm (1990) is known to be optimal in worst-case message complexity. This optimal algorithm, however, has several undesirable properties. First, it always requires M'+2* mod E mod +n-1 control messages, whether it is worst case or best case, where M' is the number of basic messages issued by the underlying computation after the algorithm starts, mod E mod is the number of channels in the system, and n is the number of processes. Second, its worst-case detection delay is O(M'). In a message-intensive computation, that might not be tolerable. Third, the maximum amount of space needed by each process is O(M'), a quantity not known at compile time, making it necessary to use the more expensive dynamic memory allocation. Last, it works only for FIFO channels. This paper remedies these drawbacks, while keeping its strength. The authors propose an algorithm that requires M'+2(n-1) control messages in the worst case, but much fewer on the average, and in the best case, it uses only 2(n-1) control messages, no matter how large M' is.