Skip to main content
100%

Parallel

✓ Published0🌍 Public
Aant1j
Last edited Nov 19, 2015
Created on Nov 19, 2015

This example shows how GNU Parallel distributes the processing of a large text file across multiple CPU cores. The visualization maps the input stream through a pipeline, highlighting the chunks that match the pattern “foo” as they are filtered by the `grep` command. The code uses the `parallel` command with `--pipe --block 2M` to split the data into 2-megabyte blocks, which are then processed concurrently. The rendering displays the block boundaries and matches in real time, using a simple custom canvas-based layout to depict the file’s contents and the parallel task execution.

AI-generated description

Similar vizzes