Quick Answer
lock/Monitor: process-local, reentrant, lightweight. Mutex: cross-process named mutex, heavier. Semaphore: limits N concurrent threads. SpinLock: busy-waits instead of blocking รขโฌโ zero context-switch overhead for very short critical sections. ReaderWriterLockSlim: multiple concurrent readers, exclusive write access รขโฌโ great for read-heavy shared data.
Answer
lock/Monitor for lightweight mutual exclusion; Mutex for cross-process locks; Semaphore limits concurrency; SpinLock for low-contention busy waits; ReaderWriterLockSlim for read-heavy workloads. Each has different contention and fairness characteristics.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.
Complete .NET Core interview questions and answers covering beginner, junior, mid-level, senior, and expert concepts for freshers and experienced developers.