---
library: "bootstrap"
slug: "Parallelize"
name: "Parallelize"
ref: "Parallelize#53a5"
hash: "sema:Parallelize#mh:SHA-256:53a54fc8c6c719497cade703e7153f188faf393a54259d62079ea3a38b5092fd"
type: "Strategy"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Parallelize"
---

# Parallelize

Run subtasks simultaneously and aggregate

Mind · Strategy

## Mechanism

Runs multiple LLM calls simultaneously and aggregates results. Two modes: Sectioning (split [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) into independent subtasks, run in [Parallel](https://semahash.org/vocabularies/bootstrap/patterns/Parallel.md), merge) and Voting (run same [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) multiple times, [Aggregate](https://semahash.org/vocabularies/bootstrap/patterns/Aggregate.md) via majority [Mode](https://semahash.org/vocabularies/bootstrap/patterns/Mode.md) or selection). Trades compute cost for speed and/or confidence. It spawns concurrent execution threads and employs [Aggregate](https://semahash.org/vocabularies/bootstrap/patterns/Aggregate.md) to unify the results into a final [Result](https://semahash.org/vocabularies/bootstrap/patterns/Result.md).

## Invariants

- Independence: no subtask reads another subtask's output.
- Aggregation is chosen before fan-out, and subtasks are shaped to produce outputs it accepts.

## Signature

- Parallel(Task)
- Aggregate(Result)

## Preconditions

- Batch of tasks
- Multiple workers

## Postconditions

- All results aggregated, or the unaggregatable ones reported as such

## Failure modes

- Merge Conflicts: [Parallel](https://semahash.org/vocabularies/bootstrap/patterns/Parallel.md) outputs are incompatible and can't be combined.
- Unanimous Wrong: All parallel paths make the same error.
- Aggregation [CognitiveBias](https://semahash.org/vocabularies/bootstrap/patterns/CognitiveBias.md): Merge [Strategy](https://semahash.org/vocabularies/bootstrap/patterns/Strategy.md) systematically favors certain outputs.

## Where this came from

—

## Builds on

- [Parallel](https://semahash.org/vocabularies/bootstrap/patterns/Parallel.md) (references)
- [Strategy](https://semahash.org/vocabularies/bootstrap/patterns/Strategy.md) (references)
- [Result](https://semahash.org/vocabularies/bootstrap/patterns/Result.md) (references)
- [Mode](https://semahash.org/vocabularies/bootstrap/patterns/Mode.md) (references)
- [CognitiveBias](https://semahash.org/vocabularies/bootstrap/patterns/CognitiveBias.md) (references)
- [Aggregate](https://semahash.org/vocabularies/bootstrap/patterns/Aggregate.md) (composes_with)
- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) (accepts)

## Used by

- [DAG](https://semahash.org/vocabularies/bootstrap/patterns/DAG.md) (references)
- [FabricSharding](https://semahash.org/vocabularies/bootstrap/patterns/FabricSharding.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Parallelize#53a5
- Hash: sema:Parallelize#mh:SHA-256:53a54fc8c6c719497cade703e7153f188faf393a54259d62079ea3a38b5092fd

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Parallelize
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Parallelize.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
