4
votes
6answers
460 views

Strategy for avoiding threadpool starvation while performing cpu bound jobs in a queued fashion

My aim is to avoid using threadpool threads for CPU bound work, thus avoiding a situation where IIS stops responding to new requests. Can you see any problems with the code below? Is this a ...
4
votes
2answers
558 views

Optimizing a Fire and Forget page tracker

I have a bit of code that came from Egg Head Cafe a long while ago and it's been working great. But I ran the entire site through Redgate's Profiler. and it came up as the biggest hot spot in my code. ...
1
vote
1answer
128 views

Is this a good way to optionally run some code on a background thread?

I'm attempting to keep this as DRY as possible; is this a good method to optionally run some code on a background thread depending on a configuration setting? This will primarily be called from an ...