From: Lionel Bouton Date: 2007-08-16T20:24:13+09:00 Subject: Re: Threads and loops Emil Sandin wrote the following on 16.08.2007 13:20 : > [...] > Thread.new do > loop{ > puts "hello" > sleep 1 > } > end > > > > it prints it only one time and then exits. > Why is that? > You don't wait for the Thread to stop to exit your program.