From: Detlef Reichl Date: 2005-11-04T03:08:50+09:00 Subject: Re: Continous running thread On Fr, 2005-11-04 at 03:02 +0900, iamscottwalter@gmail.com wrote: > Hi, > > I have a simple task, I want to have a Thread that will every 2 minutes > perfom a task. I have tried: > > thread = Thread.new do > while true > puts "Scott" > sleep 10000 > end > end > > But it seems to only print "scott" once. How can I in Ruby have a > thread that will puts "scott" ervery 10 seconds? > Hi sleep sleeps for seconds not for milliseconds. Try slee 10 Cheers detlef > Thanks in advance. > >