How to write parallel programs: a guide to the perplexed

Author:

Carriero Nicholas1,Gelernter David1

Affiliation:

1. Yale Univ., New Haven, CT

Abstract

We present a framework for parallel programming, based on three conceptual classes for understanding parallelism and three programming paradigms for implementing parallel programs. The conceptual classes are result parallelism, which centers on parallel computation of all elements in a data structure; agenda parallelism, which specifies an agenda of tasks for parallel execution; and specialist parallelism, in which specialist agents solve problems cooperatively. The programming paradigms center on live data structures that transform themselves into result data structures; distributed data structures that are accessible to many processes simultaneously; and message passing, in which all data objects are encapsulated within explicitly communicating processes. There is a rough correspondence between the conceptual classes and the programming methods, as we discuss. We begin by outlining the basic conceptual classes and programming paradigms, and by sketching an example solution under each of the three paradigms. The final section develops a simple example in greater detail, presenting and explaining code and discussing its performance on two commercial parallel computers, an 18-node shared-memory multiprocessor, and a 64-node distributed-memory hypercube. The middle section bridges the gap between the abstract and the practical by giving an overview of how the basic paradigms are implemented. We focus on the paradigms, not on machine architecture or programming languages: The programming methods we discuss are useful on many kinds of parallel machine, and each can be expressed in several different parallel programming languages. Our programming discussion and the examples use the parallel language C-Linda for several reasons: The main paradigms are all simple to express in Linda; efficient Linda implementations exist on a wide variety of parallel machines; and a wide variety of parallel programs have been written in Linda.

Publisher

Association for Computing Machinery (ACM)

Subject

General Computer Science,Theoretical Computer Science

Reference45 articles.

1. ASHCRAFT C. CARRIERO N. AND GELERNTER D. 1989. Is explicit parallelism natural? Hybrid DB search and sparse LDLT factorization using Linda. Res. Rep. 744 Dept. of Computer Science Yale Univ. New Haven Conn. Jan. ASHCRAFT C. CARRIERO N. AND GELERNTER D. 1989. Is explicit parallelism natural? Hybrid DB search and sparse LDLT factorization using Linda. Res. Rep. 744 Dept. of Computer Science Yale Univ. New Haven Conn. Jan.

2. Implementing remote procedure calls

3. BJORNSON R. CARRIERO N. AND GELERNTER U. 1989. The implementation and performance of hypercube Linda. Res. Rep. 690 Dept. of Computer Science Yale Univ. New Haven Conn. Mar. BJORNSON R. CARRIERO N. AND GELERNTER U. 1989. The implementation and performance of hypercube Linda. Res. Rep. 690 Dept. of Computer Science Yale Univ. New Haven Conn. Mar.

4. BJORNSON U. CARRIERO N. GELERNTER D. AND LEICHTER J. 1988. Linda the portable parallel. Res. Rep. 520 Dept. of Computer Science Yale Univ. New Haven Conn. Jan. BJORNSON U. CARRIERO N. GELERNTER D. AND LEICHTER J. 1988. Linda the portable parallel. Res. Rep. 520 Dept. of Computer Science Yale Univ. New Haven Conn. Jan.

Cited by 121 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Analysis of Parallel Computing Methods and Algorithms;2023 IEEE XVI International Scientific and Technical Conference Actual Problems of Electronic Instrument Engineering (APEIE);2023-11-10

2. An Autonomous Data Language;Theoretical Aspects of Computing – ICTAC 2023;2023

3. User-Defined Tensor Data Analysis;SpringerBriefs in Computer Science;2021

4. Introduction;User-Defined Tensor Data Analysis;2021

5. Developing political-ecological theory: The need for many-task computing;PLOS ONE;2020-11-24

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3