code: public int getWorkQueueSize() {
          int size = 0;
          for (Worker worker : workers) {
              size += worker.taskQueue.size();
          }
          return size;
      }
docs: Returns the total number of tasks pending to be executed.
  
  @return total work queue size.