Hi Neil
First of all Neil, bravo for the site, its just amazing, i keep track of it from its early beginning , and it just gets better with every article.
I far as i understand, the best way to prevent a context switch,
(force my thread to use its quantum), is to run something like that
main(){
while(true){}
}
This program should not cause a lot of context switches.
And something really bad for context switching is
that two ( more) threads will increment a synchornized counter in a loop ?
Thanks