Mixing different types of parallelism
You can mix different types of parallelism in your applications.
For example, an audio synthesizer might use a combination of all three types of parallelism, in these ways:
- Task parallelism is used to compute the notes independently.
- A pipeline of audio generation and processing modules creates the sound of an individual note.
- Within the pipeline, some stages can use data parallelism to accelerate the computation of processing.