Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does ASP.NET by default take advantage of multicore processor?

Or I have to configure IIS specifically for this ? Do I have to use Web garden to take advantage of multiple cores ?

like image 849
pero Avatar asked Mar 12 '09 07:03

pero


2 Answers

A web server is multi-threaded (at least, IIS is).

Any multi-threaded program will be distributed over all available cores by the Windows scheduler by default (though "processor affinity" can be tuned in the task manager, for example). Whether you are using ASP.NET or any other application server/language makes no difference here.

like image 193
Tomalak Avatar answered Sep 20 '22 18:09

Tomalak


It's actually the other way around. Processor affinity is switched off in IIS6, which means the load will be distributed across all available CPUs. If you want to restrict it, you can use processor affinity to stop this default behaviour.

As you want it to use all available CPUs, the default installation will work as you want.

like image 22
Fenton Avatar answered Sep 20 '22 18:09

Fenton