February 2025
Intermediate to advanced
248 pages
6h 36m
English
This chapter covers
await threading behaviorSynchronizationContextConfigureAwaitTask.YieldTaskSchedulerMost of the time, you don’t care on which thread your code runs. If you calculate something, your calculation will produce the exact same result regardless of the thread or CPU core it runs on. But some operations do work differently, depending on the thread that runs them, the most common being
GUI—In WinForms and in WPF, all UI elements can only be accessed by the same thread that created them. Typically, all UI elements are created and accessed by just one thread (called the UI thread), and it is usually the process’ main ...
Read now
Unlock full access