I&#39;m not sure what you mean with &quot;Time on different cores does not progress monotonically&quot;. Time could come from a dedicated clock device. E.g. in the broadcast television sector a time signal is distributed across all hardware components to keep them all in sync within some margin, or you could use the clock from a local sound card, etc. I guess each operating system provides such a clock.&nbsp;<div>
<br></div><div>I&#39;m also not sure about the performance penalty. One would surely get a penalty with a global lock on the clock (serializing time), but I think the problem &nbsp;can be solved with a local lock per stream. But I would have to think about this more before claiming such things :-)</div>
<div><br></div><div>Maybe you could elaborate a bit more on your claims?</div><div><br></div><div><div><br></div><div><br><div><div><br></div><div><br><div><div><br><div class="gmail_quote">On Sun, Feb 15, 2009 at 5:38 AM, Bryan O&#39;Sullivan <span dir="ltr">&lt;<a href="mailto:bos@serpentine.com">bos@serpentine.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote">2009/2/14 Peter Verswyvelen <span dir="ltr">&lt;<a href="mailto:bugfact@gmail.com" target="_blank">bugfact@gmail.com</a>&gt;</span><div class="Ih2E3d">
<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div><div><div class="gmail_quote">If you have two streams of time/value pairs - using MVars as write-once sampling variables - and both streams are fed from another thread (e.g. timers firing), and you want to merge these two streams into a single stream with monotonic time stamps, then you want to be able to check if at time t an occurrence exists in a stream.</div>

</div></div></blockquote></div><div><br>What you want to do isn&#39;t actually achievable on multi-processor machines without some form of mutual exclusion. Time on different cores does not progress monotonically, and you&#39;ll pay an enormous performance penalty to do what you want to do (the nature of which is somewhat unclear).<br>

</div></div>
</blockquote></div><br></div></div></div></div></div></div>