Ruby 中我们可以通过Thread 类来创建多线程,Ruby的线程是一个轻量级的, ... def func1 i=0 while i<=2 puts "func1 at: #{Time.now}" sleep(2) i=i+1 end end def ...
確定! 回上一頁