Is AsParallel() good practice in a web environment?

Posted by Bjorn Bailleul on Stack Overflow See other posts from Stack Overflow or by Bjorn Bailleul
Published on 2010-05-03T14:44:55Z Indexed on 2010/05/03 14:48 UTC
Read the original article Hit count: 344

Filed under:
|
|
|

I have no doubt that for client applications, AsParallel() will bring some out-of-the-box performance gains. But what if I would use it in a web environment. Let's say I have a widget framework that loops over all widgets to get their data and render output. This would parallelize great no?

I do have my doubts on using AsParallel() in this scenario. What if I have a large number of visitors for my site, isn't IIS going to use multiple threads to handle all requests? Aren't there going to be locking issues presented after a while, or threads dying because all processors are in use?

It's just a thought, what do you think about this?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#