Is the following inefficient? I want to allocate nearly all resources to threads but I'm wondering if in this case this loop will consume a lot of CPU time.
threads = create_threads #method that returns an Array of Threads
alive = false
threads.each do |thread|
alive = true
break unless alive
threads.each do |thread| thread.join end
my_thread.join returns as soon as