## Abstract

The problem of performing n tasks on p asynchronous or undependable processors is a basic problem in distributed computing. This paper considers an abstraction of this problem called Write-All: using p processors write 1's into all locations of an array of size n. In this problem writing 1 abstracts the notion of performing a simple task. Despite substantial research, there is a dearth of efficient deterministic asynchronous algorithms for Write-All. Efficiency of algorithms is measured in terms of work that accounts for all local steps performed by the processors in solving the problem. Thus an optimal algorithm would have work ΘO(n), however it is known that optimality cannot be achieved when p = Ω(n). The quest then is to obtain work-optimal solutions for this problem using a non-trivial, compared to n, number of processors p. Recently it was shown that optimality can be achieved using a non-trivial number M of processors, where M = 4√n/log n. The new result in this paper significantly extends the range of processors for which optimality is achieved. The result shows that optimality can be achieved using close to M^{2} processors; more precisely, using (M log M)^{2-ε} processors, for any ε > 0. Additionally, the new result uses only the atomic read/write memory, without resorting to using the test-and-set primitive that was necessary in the previous solution. This paper presents the algorithm and gives its analysis showing that the work complexity of the algorithm is O(n + p^{2+ε}), which is optimal when p = O(n^{1/(2+ε)}), while all prior deterministic algorithms require super-linear work when p = Ω(n^{1/4}).

Original language | English (US) |
---|---|

Pages | 311-320 |

Number of pages | 10 |

DOIs | |

State | Published - 2004 |

Externally published | Yes |

Event | SPAA 2004 - Sixteenth Annual ACM Symposium on Parallelism in Algorithms and Architectures - Barcelona, Spain Duration: Jun 27 2004 → Jun 30 2004 |

### Conference

Conference | SPAA 2004 - Sixteenth Annual ACM Symposium on Parallelism in Algorithms and Architectures |
---|---|

Country/Territory | Spain |

City | Barcelona |

Period | 6/27/04 → 6/30/04 |

## Keywords

- Asynchrony
- Distributed algorithms
- Shared memory
- Work
- Write-All

## ASJC Scopus subject areas

- Software
- Safety, Risk, Reliability and Quality