Teach and review C# concurrency and thread-safety. Use for threads, locks, Monitor, SemaphoreSlim, ReaderWriterLockSlim, concurrent collections, channels, Parallel, Task coordination, race conditions, shared state, deadlocks, cancellation, and CPU-bound parallel work.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Teach and review C# concurrency and thread-safety. Use for threads, locks, Monitor, SemaphoreSlim, ReaderWriterLockSlim, concurrent collections, channels, Parallel, Task coordination, race conditions, shared state, deadlocks, cancellation, and CPU-bound parallel work.
metadata
{"short-description":"C# concurrency and thread-safety"}
C# Concurrency
Use $csharp-tutor mode=concurrency.
Treat all user text after $csharp-concurrency as a C# concurrency, threading, synchronization, parallelism, race-condition, or shared-state question. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/concurrency-guidance.md
references/modern-dotnet-patterns.md
references/async-guidance.md
references/performance-review-map.md
references/common-csharp-pitfalls.md
references/source-citation-rules.md
references/testing-guidance.md
Separate async I/O from concurrency and CPU-bound parallelism. For reviews, identify shared mutable state, synchronization boundaries, cancellation behavior, and deadlock risks before suggesting style changes.
Standalone Guidance
Core rule: Keep the answer centered on the concrete concurrency decision, failure mode, or contract.
Avoid: Giving generic C# advice without tying it to the concurrency concern.