2014-05-24から1日間の記事一覧
イントロ 第19章 スレッド を見てやってみました。 が、うまくいかない。 わかる % cat thread.rb Thread.fork { while true puts 'forked thread' end } while true puts 'main thread' end % ruby thread.rb #=> forked thread forked thread forked threa…
イントロ 第19章 スレッド を見てやってみました。 が、うまくいかない。 わかる % cat thread.rb Thread.fork { while true puts 'forked thread' end } while true puts 'main thread' end % ruby thread.rb #=> forked thread forked thread forked threa…