for i in 0...NB_THREAD th < Thread.new(i) { |nb| while site[nb] = liste.pop do check(site[nb]) end } end (liste.pop and not pop.liste)