First question, is the ThreadPool configuration on process level? if i change the threadpool configuration in one process does it affect the other .NET processes?
Second question, if i want to have multiple ThreadPools (one threadpools with 5 threads in one component of the application and one threadpool with 2 threads in another component ) how to configure them or what to use as an alternative?
Thanks for helping
As you have noticed you cannot change the
ThreadPoolconfiguration from a global machine configuration file (machine.config) or an application level configuration file (app.config or web.config for ASP.NET apps).As explained here you can do it by code, eventually reading the settings from a config file manually.
This implies that changes done in this way at runtime are limited to your application, surely do not span across other running processes on same server or machine.