Click here to Skip to main content
15,891,607 members
Articles / General Programming / Threads

Customizing the TaskScheduler: Queue Your Task Work Items to Run When You Want Them To

Rate me:
Please Sign up or sign in to vote.
4.20/5 (9 votes)
18 Jul 2020MIT10 min read 27K   546   8  
Leveraging some less well known areas of the .NET Task framework to schedule tasks to execute on your own conditions.
This article demonstrates the customization of the task scheduling algorithm .NET uses to run Task items. Here, we use it to put a hard limit on the number of parallel jobs being performed, rather than leaving that to the default scheduler, which is very aggressive.

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