Thread dispatcher favors UI threads over background threads

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Note

These release notes describe functionality that may not have been released yet. To see when this functionality is planned to release, please review What's new and planned for Dynamics 365 Business Central. Delivery timelines and projected functionality may change or may not ship (see Microsoft policy).

Inside the Business Central server, a component called the thread dispatcher ensures that all user threads (related to UI or background tasks) get a fair share of the CPU resources on the server. Prior to the April 2019 release, all threads were given time slices of 50 milliseconds to execute work. On a busy system with many background tasks, threads serving UI will sometimes be queued for a short time and yield to threads serving background tasks. In the April 2019 release, UI threads will not be put to sleep because of background threads that need to run, unless there are more UI threads than cores available on the server, in which case they will run in a round-robin priority.

Tell us what you think

Help us improve Dynamics 365 Business Central by discussing ideas, providing suggestions, and giving feedback. Use the Business Central forum at https://aka.ms/businesscentralideas.