Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does an ASP.net page running on IIS make use of multicore processors?

I've got an ASP.net page that runs a script which takes anywhere between 1 second and 10 minutes to run dependant on the parameters passed in to it.

My question is, if the server is multicore, will this script automatically make use of all the processors, or is it constricted to one.

Thanks for any help

like image 432
Tom Gullen Avatar asked Oct 16 '25 12:10

Tom Gullen


1 Answers

No, the page will only run on one core.

IIS uses several threads to process requests, but it only uses one thread at a time for each request.

If you want the code to make use of more than one core, you have to start threads yourself.

like image 126
Guffa Avatar answered Oct 19 '25 03:10

Guffa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!