From: Miguel Angel Nieto Date: 2011-07-29T05:12:27+09:00 Subject: long loops inside threads Hi, I have a newbie question :) If I run the following code outside a thread: count=0 while count < 10000 do puts "x" count +=1 end I get 10000 'x'. But, if I run the same code inside a thread, I receive different number of 'x' on each execution: 7932 4305 4431 What I'm doing wrong? I need to execute the same command inside a thread 10000 times! :) Thank you. -- Posted via http://www.ruby-forum.com/.