2.2.2 Task parallelism
In task parallelism, the application is broken down into smaller tasks that execute in parallel. Task parallelism is also known as functional parallelism.
An example of an application that can use task parallelism is playing a video
in a web page. To display a video in a web page, your device must do several tasks:
- Run a network
stack that performs communication.
- Request data from an external server.
- Read data from an external server.
- Parse data.
- Decode video data.
- Decode audio data.
- Draw video frames.
- Play audio data.
The following figure shows parts of an application and operating
system that operate simultaneously when playing an on-line video.
Figure 2-1 Task parallel processing