Context switching itself is expensive. Try to make one thread a higher priority than the other. That should reduce context switching, as Windows will not switch to a low-priority thread as along as a high-priority thread wants to run.
↧