Click here to Skip to main content
15,868,014 members
Articles / General Programming / Threads

Understanding the SynchronizationContext in .NET with C#

Rate me:
Please Sign up or sign in to vote.
5.00/5 (31 votes)
28 Jul 2020MIT11 min read 62K   889   38  
Take control of which thread your code gets executed on, and how it does
This article explores what a SynchronizationContext is, how to use it, and even how to implement it to control where your code gets executed from.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
Just a shiny lil monster. Casts spells in C++. Mostly harmless.

Comments and Discussions