Revision
Cheat sheets
.NET Runtime and Concurrency cheat sheets
17 resultsClear filters
- NoteFree
C# async/await Pitfalls Cheat Sheet
The async/await bugs interviewers show you (async void, .Result, lost exceptions, elided awaits, ValueTask misuse, missing cancellation) and their fixes, with a runnable .NET 10 demo.
.NET Runtime and Concurrency
- ArticleFull Access
C# and .NET Performance: Async, Threads and Data Structures
CPU-bound versus I/O-bound work, async/await, multithreading and parallelism, and choosing the right data structure for performance.
.NET Runtime and Concurrency
- PDFFull Access
C# Concurrency Lab Workbook
Eight-page study workbook covering task ownership, cancellation, bounded parallelism, shared state, channels and graceful shutdown, with exercises and explained checkpoints.
8 pages · 458 KB · .NET Runtime and Concurrency
- PDFFree
C# Concurrency and Measured Performance Companion
Reproduce a lost update, compare atomic and locked repairs, and track permit ownership in an asynchronous gate. Includes runnable C# programs, solved correctness exercises, and a measured counter probe with explicit performance limits.
12 pages · 134 KB · .NET Runtime and Concurrency
- PDFFree
C# Cancellation and Deadline Budgets Companion
Work through cooperative cancellation, linked-token reporting, and one shared deadline for sequential operations. Includes complete C# examples, controlled outcomes, remaining-budget arithmetic, and solved exercises.
10 pages · 124 KB · .NET Runtime and Concurrency
- PDFFree
C# Async and Task Lifecycles Companion
Trace async method lifecycles, compare completed and incomplete awaits, and work through task composition, failure observation, and bounded fan-out with runnable C# examples and solved practice.
10 pages · 120 KB · .NET Runtime and Concurrency
- ArticleFull Access
Span<T> and Memory<T> in C#: A Practical Reference
Both Span<T> and Memory<T> are views over a contiguous block of memory.
.NET Runtime and Concurrency
- ArticleFull Access
Compilation, the CLR and Memory Management: .NET vs Other Languages
Compilation generally means translating source code into a lower-level form (machine code or bytecode).
.NET Runtime and Concurrency
- ArticleFree
GC Roots, Reachability, and Why Objects Stay Alive in .NET
Trace GC roots and retaining paths to explain why managed objects stay alive, and distinguish eligibility for collection from when collection occurs.
.NET Runtime and Concurrency
- NoteFree
C# Async Coordination: Cancellation, Timeouts, and Bounded Concurrency
A practical interview and production guide to cooperative cancellation, timeout boundaries, bounded fan-out, failure handling, and observability in modern C#.
.NET Runtime and Concurrency
- ArticleFree
Allocation-Aware Parsing with ReadOnlySpan<char> in C#
Learn how ReadOnlySpan<char> lets you parse text without copying substrings, how slicing preserves views into the same input, and why ref-struct lifetime rules prevent spans from escaping safe scope boundaries.
.NET Runtime and Concurrency
- ArticleFull Access
Safe ArrayPool<byte> Ownership and Finally-Based Returns
Learn how to rent byte buffers from ArrayPool<byte> safely: track the valid slice length, treat the rent as borrowed ownership, and always return it in finally even when exceptions happen.
.NET Runtime and Concurrency
- NoteFree
ReadOnlyMemory and ReadOnlySpan Across Async Boundaries
Learn how ReadOnlySpan and ReadOnlyMemory differ at async boundaries, why spans are stack-only views, and how ownership of rented buffers stays with the owner until consumers finish.
.NET Runtime and Concurrency
- NoteFree
IDisposable vs GC: Two Resource Lifetimes
Learn why IDisposable is about deterministic ownership cleanup, while garbage collection is about reclaiming unreachable managed memory. This lesson shows how using, try/finally, and ownership boundaries fit together in interviews.
.NET Runtime and Concurrency
- ArticleFree
Cancellation Tokens in Async C# APIs: Cooperative Shutdown
Learn how to design, pass, and honor CancellationToken in async C# APIs so callers can stop work cooperatively without leaking tasks or hiding late failures.
.NET Runtime and Concurrency
- NoteFree
Allocation Rate vs Retained Heap in .NET Memory Tuning
Understand why allocation rate and retained managed heap measure different performance problems, how to read them together, and why a high allocation rate can still be compatible with a small live heap.
.NET Runtime and Concurrency
- ArticleFree
ConcurrentDictionary: Thread Safety Is Not Workflow Atomicity
How to reason about ConcurrentDictionary operations, delegates, duplicate work, and multi-step invariants in production and interviews.
.NET Runtime and Concurrency