Tag: concurrency
All the articles with the tag "concurrency".
C# List<T> Add Method Missing Items When Count Inspected When Adding Items In An Async Task
Why concurrent List<T>.Add calls can lose items, and when a concurrent collection can help.
C# Tasks Unexpectedly Running More Than Once (Async Lambda IEnumerable<Task> With foreach Loop)
Why enumerating a deferred IEnumerable<Task> more than once can unexpectedly run asynchronous work again.
Limiting Concurrent Operations With SemaphoreSlim Using C#
Limit concurrent operations with SemaphoreSlim while maintaining throughput in C#.
Thread Safe Lazy Initialization Using C# Notes
Notes on Lazy<T>, thread-safety modes, and exception behavior in C#.