parallel-execution
9
总安装量
9
周安装量
#33115
全站排名
安装命令
npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill parallel-execution
Agent 安装分布
opencode
9
claude-code
9
github-copilot
9
codex
9
kimi-cli
9
gemini-cli
9
Skill 文档
Parallel Execution
Execute multiple independent tasks simultaneously to maximize throughput and minimize total execution time.
When to Use
- Multiple independent tasks (no dependencies)
- Tasks benefit from concurrent execution
- Maximizing throughput is priority
- Available agents for parallel work
- Results can be aggregated after completion
Core Concepts
Independence
Tasks are independent when:
- â No data dependencies
- â No resource conflicts
- â No ordering requirements
- â Failures are isolated
Concurrency
Critical: Use single message with multiple Task tool calls:
[Task tool] â Agent A
[Task tool] â Agent B
[Task tool] â Agent C
All start simultaneously.
Execution Patterns
| Pattern | Description | Example |
|---|---|---|
| Homogeneous | Same agent, different inputs | Test 3 modules |
| Heterogeneous | Different agents, related task | Review + Test + Profile |
| Parallel + Convergence | Parallel â Synthesize | Profile + Analyze â Root cause |
Synchronization Strategies
- Wait for All: Proceed when ALL complete
- Wait for Any: Early termination on first success
- Threshold: Proceed when N of M complete
Performance
Sequential: T1 + T2 + T3
Parallel: max(T1, T2, T3)
Speedup = Sequential / Parallel
Example: 3 tasks (10+15+8 min) â Parallel (15 min) = 2.2x faster
Best Practices
â Verify independence before parallelizing â Use single message with multiple Task calls â Balance workload across agents â Handle failures gracefully
â Don’t parallelize dependent tasks â Don’t send sequential messages