Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > threadライブラリ > Queueクラス > num_waiting
num_waiting
queue を待っているスレッドの数を返します。