by ChuckMcM · 12y ago · 0 comments
"The beauty of this is that with a precise enough timer, you also solve the multithreading issue because nothing ever happens at exactly the same time."
In the first part the author expresses a technique which narrows the window for failure, and adds a fallacy which sounds good but isn't true.
This way of thinking (narrowing windows to the point where they are probabilistically rare "enough") has been the source of many bugs.
Urs Hoezle (VP at Google) once said something I really liked which was "At a large enough scale, statistically impossible things happen every day." It is painful to accept but I've seen it in action.
http://blogs.msdn.com/b/larryosterman/archive/2004/03/30/104...
In our case, we have some additional homework to make it work on several nodes that is well beyond the scope of this post
As for multithreading, the functions are guaranteed monotonic.
"nothing happens at the same time" is a reference to the laws of physics.