lock-less technique to pass double update from one thread to another
<p>Assume I have shared <code>double</code> variable. Thread <code>A</code> updates it several thousands times per second. In another thread <code>B</code> I want to be notified somehow about "update" every time this happens.</p>

<p>I was tried to avoid notifications completely and just use <code>while(true)</code> loop but this introduced significant slowdowns into my program <a href="http://stackoverflow.com/questions/11392169/lock-free-calc-how-to-sum-n-double-numbers-that-are-changing-by-other-threads">lock-free calc: how to sum N double numbers that are changing by other threads?</a> probably because of that "Meanwhile you keep on loading that same array from memory over and over which is not really good for performance since memory bandwith is limited."</p>

<p>I've also tried using <code>Monitor</code> class but it was also pretty slow and I've seen up to 1-2 ms delays when <code>Monitor.TryEnter</code> return <code>false</code>.</p>

<p>I now think that I need to do notifications using lock-free technique, probably using <code>SpinLock</code> or something else?</p>
