ACM Home Page
Please provide us with feedback. Feedback
How to write parallel programs: a guide to the perplexed
Full text PdfPdf (3.27 MB)
Source ACM Computing Surveys (CSUR) archive
Volume 21 ,  Issue 3  (September 1989) table of contents
Pages: 323 - 357  
Year of Publication: 1989
ISSN:0360-0300
Authors
Nicholas Carriero  Yale Univ., New Haven, CT
David Gelernter  Yale Univ., New Haven, CT
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 18,   Downloads (12 Months): 160,   Citation Count: 51
Additional Information:

abstract   references   cited by   index terms   review   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/72551.72553
What is a DOI?

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.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
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.
 
2
BAL, H. E., AND TANENBAUM, A. S. 1987. Orca: A language for distributed object-based programming. Internal Rep. 140, Dept. Wiskunde en Informatica, Vrije Universiteit, Amsterdam, Dec.
3
 
4
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.
 
5
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.
 
6
 
7
BRINCH HANSEN, P. 1975. The programming language Concurrent Pascal. IEEE Trans. Softw. Eng. SE-1, 2, 199-206.
8
9
10
11
12
13
 
14
DEPARTMENT OF DEFENSE, U.S. 1982. Reference Manual for the Ada Programming Language. ACM AdaTEC, July.
 
15
GELERNTER, D. 1989. Information management in Linda. In M. Reeve and S. E. Zenith, eds., Parallel processing and artificial intelligence, J. Wiley (1989):/23-34, Proceedings of AI and Communicating Process Architectures (London, July).
16
 
17
GELERNTER, D., CARRIERO, N., CHANDRAN, $., AND CHANG, S. 1985. Parallel programming in Linda. In Proceedings of the International Conference on Parallel Processing (St. Charles, Ill., Aug.). IEEE, 255-263.
 
18
GILMORE, P. 1979. Massive Parallel Processor (MPP):/Phase One Final Report. Tech. Rep. GER-16684, Goodyear Aeorospace Co., Akron.
 
19
20
 
21
HENDERSON, P. 1982. Purely functional operating systems. In Functional Programming and Its Applications, J. Darlington, P. Henderson, and D. A. Turner, Eds. Cambridge Univ. Press, New York, pp. 177-192.
22
23
24
 
25
 
26
27
 
28
KAHN, G. 1974. The semantics of a simple language for parallel processing. In Proceedings of the IFIP Congress 74. North Holland, 471.
29
30
 
31
LELER, W. 1989. PIX, the latest NEWS. In Proceedings of COMPCON Spring '89 (San Francisco, Feb.). IEEE.
32
33
34
 
35
MULLENDER, S. J., AND TANENBAUM, A. S. 1986. The design of a capability-based distributed operating system. Comput. J. 29, 4 (Mar.), 289-300.
 
36
 
37
NAREM, J. E. 1988. DB: A parallel news database in Linda. Tech. memo, Dept. of Computer Science, Yale Univ., New Haven, Conn., Aug.
 
38
NIKHIL, R., PINGALI, K., AND ARVIND. 1986. Id Nouveau. Memo 265, Computation Structures Group, MIT, Cambridge, Mass.
 
39
OLSON, T. J. 1986. Finding lines with the Hough Transform on the BBN Butterfly parallel processor. Butterfly Proj: Rep. 10, Dept. of Comput. Science, Univ. of Rochester, New York, Sept.
40
 
41
ROTH, P. 1985. Portnoy's Complaint. Fawcett Crest, p. 309 (first published by Random House, New York 1967).
42
 
43
 
44
 
45
WIRTH, N. 1977. Modula: A language for modular multiprogramming. Softw. Pract. Exp. 7, 3-35.
 
46
47

CITED BY  51


REVIEW

"Ryszard Janicki : Reviewer"

This clearly written survey persents three conceptual classes for specifying parallelism and the programming paradigms for implementing parallel programs. The conceptual classes are result parallelism, which centers on parallel computation of al  more...

Collaborative Colleagues:
Nicholas Carriero: colleagues
David Gelernter: colleagues