code: public void submitHeatbeat(Task task) {
          task.activate(true);
          heartBeatQueue[coreThread.runIndex].accept(task);
      }
docs: Queues task for execution according to its priority.
  
  @param task the task to be executed.