Quote:
Originally Posted by gvarndell
This is a too simplistic view of the issue.
Yes, there is some weight associated context switching.
But if a single thread polls for some event for even 3 milliseconds, that wasted time is nowhere near recovered by avoiding context switches.
|
You didn't account for the rest of my post.

As I said, depending on what you do with those threads affects performance. Obviously you'd want a separate thread if you're blocking for some input. Besides, that wasn't the overall point of my post.