--- value

    å self λޤԤ(join Ʊ)
    ΥåɤΥ֥å֤֤ͤޤåɼ¹㳰
    ȯˤϡ㳰ȯޤ

    ʲϡ٤ƤΥåɤνλԤ̤ϤǤ

       threads = []
       threads.push(Thread.new { n = rand(5); sleep n; n })
       threads.push(Thread.new { n = rand(5); sleep n; n })
       threads.push(Thread.new { n = rand(5); sleep n; n })

       threads.each {|t| p t.value}

    ǸιԤǡԤ碌ԤäƤ뤳Ȥ狼ˤȻפʤʲ
    Τ褦˽񤯤ȤǤޤ

       threads.each {|t| p t.join.value}

