# File lib/thread.rb, line 478
  def num_waiting
    @waiting.size + @queue_wait.size
  end