Agent skill
dotnet-parallel-lite
병렬 처리 핵심 패턴
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/dotnet-parallel-lite
SKILL.md
병렬 처리 핵심
1. Parallel.ForEach
var options = new ParallelOptions
{
MaxDegreeOfParallelism = Environment.ProcessorCount
};
Parallel.ForEach(items, options, item =>
{
ProcessItem(item);
});
2. PLINQ
var results = data
.AsParallel()
.Where(d => d.IsValid)
.Select(d => Transform(d))
.ToList();
3. Thread-Safe 컬렉션
// 병렬 처리 중 결과 수집
var results = new ConcurrentBag<Result>();
Parallel.ForEach(data, item =>
{
results.Add(Process(item));
});
4. 주의사항
- ⚠️ CPU 바운드: Parallel 사용
- ⚠️ I/O 바운드: async-await 사용
// ❌ I/O에 Parallel 사용
Parallel.ForEach(urls, url => httpClient.GetAsync(url).Result);
// ✅ I/O에 async-await 사용
await Task.WhenAll(urls.Select(url => httpClient.GetAsync(url)));
상세 내용:
/dotnet-parallelskill 참조
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?