Browse Prior Art Database

Program Parallelization in Comments

IP.com Disclosure Number: IPCOM000039471D
Original Publication Date: 1987-Jun-01
Included in the Prior Art Database: 2005-Feb-01
Document File: 2 page(s) / 13K

Publishing Venue

IBM

Related People

Darema-Rogers, F: AUTHOR [+4]

Abstract

A technique for permitting a multiprocessing system, such as EPEX, to identify the parallel work in a program without inserting high level specifications directly into the program is provided and comprises: reserving a control character for indicating to a preprocessor the location of high level parallelization specifications; and placing the parallelizing specifications into comment lines containing the control character before and/or after a section of the code in the program, such that the preprocessor can convert the section of the code into a corresponding parallelized section.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 2

Program Parallelization in Comments

A technique for permitting a multiprocessing system, such as EPEX, to identify the parallel work in a program without inserting high level specifications directly into the program is provided and comprises: reserving a control character for indicating to a preprocessor the location of high level parallelization specifications; and placing the parallelizing specifications into comment lines containing the control character before and/or after a section of the code in the program, such that the preprocessor can convert the section of the code into a corresponding parallelized section. In this manner, the program may be executed in both serial and parallel formats, as in the serial format, the comments will be ignored, while in the parallel format, the preprocessor will recognize the location of parallelization specifications because of the control character. To run a program in parallel on a multiprocessing system, one has to identify the parallel work in the program and use the synchronization internals of the system to organize the code and data so that the work can be distributed among the processors. Typically, in a multiprocessing system, the user specifies which sections can or cannot be executed by multiple processes, and embeds the specifications directly into the program.

A preprocessor is used to translate the parallelization specifications into lower level instructions. Because the parallelization specifications are included in the program itself, a separate listing must be maintained if the program is to be run in a serial mode. In order to permit a single program to be maintained for running in a serial or a parallel mode, a control character such as @ is reserved for indicating to a preprocessor the location of high level parallelization specifications. The control character is...