DocumentCode
1388198
Title
Shared-memory parallel programming in C++
Author
Beck, Bob
Author_Institution
Sequent Comput. Syst., Beaverton, OR, USA
Volume
7
Issue
4
fYear
1990
fDate
7/1/1990 12:00:00 AM
Firstpage
38
Lastpage
48
Abstract
A set of portable parallel-programming constructs for C, implemented in M4 macros called Parmacs, developed by researchers at Argonne National Laboratory, is considered. The Parmacs macros make it possible to write parallel C programs for shared-memory, distributed-memory, and mixed-memory systems; are portable, highly functional, and efficient; and provide sufficient functions to build a variety of parallel programs. However, they have several problems. The M4 macros are awkward to use and hard to read, so it is easy to make errors when using them. They are a mechanism outside the C language; thus, someone familiar only with C cannot readily read the code. They are not cleanly extensible, and their use is not type-checked. It is shown that using C++, rather than C, addresses these problems adequately. The Parmacs macros are described, the C++ Parmacs classes and runtime model are presented, and examples that show the use of the C++ Parmacs constructs are given. The work described considers only shared-memory constructs. Directions for future work are indicated.<>
Keywords
C language; parallel programming; C language; C++; M4 macros; Parmacs; distributed memory systems; errors; mixed-memory systems; parallel C programs; portable parallel-programming constructs; runtime model; shared memory parallel programming; shared memory systems; Concurrent computing; Data structures; Laboratories; Multitasking; Parallel programming; Portable computers; Process control; Signal processing; Writing;
fLanguage
English
Journal_Title
Software, IEEE
Publisher
ieee
ISSN
0740-7459
Type
jour
DOI
10.1109/52.56449
Filename
56449
Link To Document