Best way of running two threads alternatively?
exchanger looks right. After watching http://www.youtube.com/watch?v=WTVooKLLVT8 I think the variable should be volatile, says there is hardly any over head.
exchanger looks right. After watching http://www.youtube.com/watch?v=WTVooKLLVT8 I think the variable should be volatile, says there is hardly any over head.