concurrency-patterns
Actor model, CSP (Communicating Sequential Processes), lock-free patterns, async/await.
от sethdford★ 51 звезда на GitHub
Установить concurrency-patterns в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Concurrency Patterns
Patterns for safe concurrent programming.
Context
You are choosing a concurrency model. Each has different characteristics.
Domain Context
- Shared Memory: Threads share memory; synchronize with locks
- Message Passing: Actors/processes; no shared memory; communicate via messages
- Async/Await: Cooperative multitasking; single-threaded event loop
- Lock-Free: Use atomic operations instead of locks
Instructions
- Shared Memory: Use for tightly-coupled code; sync with locks or atomic ops
- Actor Model: Isolated actors, message-based; scale to many cores easily
- CSP: Goroutines + channels; lightweight, composable
- Async/Await: Single-threaded; good for I/O-bound workloads
- Lock-Free: Complex; use only where locks are provably bottleneck
- Choose Wisely: Wrong model makes everything harder
Anti-Patterns
- Shared memory + locks everywhere; locks are error-prone
- Message passing when you need shared mutable state; forces unnecessary copies
- Async/await for CPU-bound work; won't help
- Lock-free without deep understanding; very easy to get wrong
- Mixing concurrency models in same codebase; confuses reasoning
Further Reading
- Carl Hewitt, Actor Model (original paper)
- Go documentation on Goroutines and Channels
- Rust documentation on Async/Await
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл concurrency-patterns?
Actor model, CSP (Communicating Sequential Processes), lock-free patterns, async/await.
Как установить скилл concurrency-patterns?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл concurrency-patterns запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…