Multi-Square Application
The multi-square application is an extension of the producer-consumer application. The difference is that an iterator is used to generate multiple copies of the square
process and FIFO channels connected in between. In this case, the square
process is iterated three times, while the entire copies implement the same functionality, i.e., the C source code is the same for all square
processes.
The task graph has five processes and four FIFO channels. The generator
and consumer
processes are the same as those in the producer-consumer application. The set of square_X
processes is generated using a one-dimensional iterator, which iterates three times. The channels, which connect these iterated processes, are also generated using an iterator. The iteration bounds are defined by the variable N
which is set to 3.