|
This article is cited in 1 scientific paper (total in 1 paper)
Theory of computing
Dynamically changing parallelism with the asynchronous sequential data flows
A. I. Legalov, I. V. Matkovskii, M. S. Ushakova, D. S. Romanova Siberian Federal University, 79 Svobodny pr., 660041 Krasnoyarsk, Russia
Abstract:
A statically typed version of the data driven functional parallel computing model is proposed. It enables a representation of dynamically changing parallelism by means of asynchronous serial data flows. We consider the features of the syntax and semantics of the statically typed data driven functional parallel programming language Smile that supports asynchronous sequential flows. Our main idea is to apply the Hoar concept of communicating sequential processes to the computation control on the data readiness. It is assumed that on the data readiness a control signal is emitted to inform the processes about the occurrence of certain events. The special feature of our approach is that the model is extended with the special asynchronous containers that can generate events on their partial filling. These containers are a stream and a swarm, each of which has its own specifics. A stream is used to process data which have identical type. The data comes sequentially and asynchronously at arbitrary time moments. The number of the incoming data elements is initially unknown, so the processing completes on the signal of the end of the stream. A swarm is used to contain independent data of the same type and may be used for the massive parallel operations performing. Unlike a stream, the swarm's size is fixed and known in advance. General principles of the operations with the asynchronous sequential flows with an arbitrary order of data arrival are described. The use of the streams and the swarms in various situations is considered. We propose the language constructions which allow us to operate the swarms and streams and describe the specifics of their application. We provide the sample functions to illustrate the use of the different approaches to description of the parallelism: recursive processing of the asynchronous flows, processing of the flows in an arbitrary or predefined order of operations, direct access and access by the reference to the elements of the streams and swarms, pipelining of calculations. We give a preliminary parallelism assessment which depends on the ratio of the rates of data arrival and their processing. The proposed methods can be used in the development of the future languages and tool-kits of architecture-independent parallel programming.
Keywords:
parallel computations, asynchronous computations, static typing, dynamically changing parallelism.
Received: 27.05.2020 Revised: 08.06.2020 Accepted: 10.06.2020
Citation:
A. I. Legalov, I. V. Matkovskii, M. S. Ushakova, D. S. Romanova, “Dynamically changing parallelism with the asynchronous sequential data flows”, Model. Anal. Inform. Sist., 27:2 (2020), 164–179
Linking options:
https://www.mathnet.ru/eng/mais711 https://www.mathnet.ru/eng/mais/v27/i2/p164
|
Statistics & downloads: |
Abstract page: | 113 | Full-text PDF : | 50 | References: | 25 |
|