From: Rak Rok Date: 2007-11-07T06:17:54+09:00 Subject: Re: Changing date backward messes up threaded sleep FYI was a thread about this back in March: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/241281 -rr- On 11/6/07, MenTaLguY wrote: > On Wed, 7 Nov 2007 05:23:46 +0900, Gary Wright wrote: > > Ruby's sleep actually is a request to the thread scheduler to > > stop the current thread until the system clock has reached > > (now + delay). So if you move the clock backwards, it will take > > that much longer to reach (now + delay). If you move the clock > > forwards then the thread becomes runnable immediately. > > I think this is arguably a bug in the scheduler, but it is not > easy to remedy in a portable way. > > -mental > > >