Tag: Multithreading
-
C# Threads? What purpose do they serve? (more theoretical)
Can you imagine an application that, when you input some data or press a button, freezes and waits for a long action to finish executing? Exactly, me neither… How is it done in C#? What are Threads? A…
-
How does .Net Schedule Tasks?
We’ve previously had a chance to learn about SynchronizationContext, so now it’s time to explore the second crucial component related to thread synchronization in .NET: TaskScheduler. These two mechanisms are fundamental to mastering multi-threaded work in the .NET…
-
SynchronizationContext: A Carpenter’s Workshop Analogy
Since we’ve started diving into multithreading, we can’t skip a crucial concept like SynchronizationContext which is used in async/await and other places like UI synchronization. But what exactly does it do? To illustrate the problem, let’s imagine a…





