user@runtime:~/blog$ grep -l "threading" posts/*.md

threading

5 posts tagged with threading.

2026-04-15 9m

System.Threading.Lock: The Purpose-Built Lock That Replaces Your object Hack

Since .NET 9, the System.Threading.Lock type gives you a dedicated, faster, and semantically clearer alternative to locking on a bare object. Here is how it works, why it is roughly 25% faster than Monitor, and what to watch out for when migrating.

2026-01-08 5m

ThreadPool Tuning in .NET: What You Can (and Cannot) Control

Understand how the .NET ThreadPool manages threads, when to adjust minimum threads, and how to diagnose starvation.

2026-01-01 4m

Interlocked and Lock-Free Patterns in .NET

Use Interlocked operations for high-performance, lock-free atomic updates to shared state in concurrent .NET applications.

2025-12-08 4m

SynchronizationContext Demystified

Understand what SynchronizationContext is, how different .NET platforms implement it, and why it shapes async behaviour.

2025-08-05 4m

The Lock Object: A Purpose-Built Synchronisation Primitive

C# 13 introduces System.Threading.Lock, a dedicated type for the lock statement that improves performance and clarity.