C# ThreadPool context switch logic
<p>I've been testing out some code that uses <code>ThreadPool</code> in C# and I noticed that a lot of unnecessary context switch occurs. While one thread is executing regular statements it gets context switched. They literally seem to be going back and forth for every line. I was wondering what the logic behind this was. Why would a thread get switched out for regular executions? </p>
