{"description":"\u3044\u307e\u307e\u3067\u3088\u304f\u4f7f\u3063\u3066\u305f\u30a4\u30c7\u30a3\u30aa\u30e0 Thread\u3092\u96c6\u3081\u308bArray\u3092\u7528\u610f\u3059\u308b\u3002 th = [] n.times do |i| th[i] = Thread.start{ do_something } end th.each(&:join) '14/6/30\u8ffd\u8a18\uff1aArray\u306bpush\u3059\u308b th = [] n.times do th << Thread.new { do_something } end th.each(&:join) \u6700\u521d\u306e\u4f8b\u3068\u540c\u3058\u306a\u306e\u3060\u3051\u3069\u3001\u5909\u6570i\u3092\u4f7f\u308f\u306a\u304f\u3066\u6e08\u3080\u306e\u3067\u697d\u3067\u3059\u306d\u3002 \u3061\u3087\u3063\u3068\u697d\u306a\u30a4\u30c7\u30a3\u30aa\u30e0 \u6b21\u306e\u672c\u306ep.396\u306b\u8a18\u8f09\u304c\u3042\u3063\u305f\u30a4\u30c7\u30a3\u30aa\u30e0\u3002Ruby Way \u7b2c2\u7248 (Profe\u2026","author_name":"riocampos","blog_url":"https://riocampos-tech.hatenablog.com/","version":"1.0","height":"190","published":"2014-04-12 00:00:00","title":"Thread.join\u306e\u30a4\u30c7\u30a3\u30aa\u30e0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Friocampos-tech.hatenablog.com%2Fentry%2F20140412%2Fthread_join_idiom\" title=\"Thread.join\u306e\u30a4\u30c7\u30a3\u30aa\u30e0 - \u5225\u9928 \u5b50\u5b50\u5b50\u5b50\u5b50\u5b50\uff08\u306d\u3053\u306e\u3053\u3053\u306d\u3053\uff09\u306f\u3066\u30d6\u30ed\u90e8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Ruby","tips"],"url":"https://riocampos-tech.hatenablog.com/entry/20140412/thread_join_idiom","blog_title":"\u5225\u9928 \u5b50\u5b50\u5b50\u5b50\u5b50\u5b50\uff08\u306d\u3053\u306e\u3053\u3053\u306d\u3053\uff09\u306f\u3066\u30d6\u30ed\u90e8","provider_name":"Hatena Blog","image_url":"https://images-fe.ssl-images-amazon.com/images/I/51okU1xsXlL._SL160_.jpg","author_url":"https://blog.hatena.ne.jp/riocampos/","width":"100%","provider_url":"https://hatena.blog","type":"rich"}