I have a website (ASP.NET MVC3) that runs on IIS 7. From this website, long running, calculation intensive jobs can be started on a WCF service that runs on the same machine, but on a different application pool.
I would like to ensure that the WCF service has a lower priority than the website, so the website stays nice an responsive. Does anyone know how to accomplish this? For example, is it possible to restrict the number of cores that are used by an application pool?
In my WCF service I already run the calculations inside a Thread with priority set to “Lowest”, but this doesn’t seem to make a difference.
Thanks in advance!
Perhaps this can help. I think that you will find
limitattribute helpful. Also, withsmpAffinitizedyou can set affinity mask.