Originally posted by duby229
View Post
Context switches are slow, but what's really slow with them is synchronization, since it's on the order of micro-seconds. That's 1000 times slower than nanoseconds btw. Busy waiting avoids this particular problem at the expense of fully utilizing the thread that's waiting. With busy waiting the result will be ready as soon as it is ready, not 1000 nanoseconds later.
Comment