function scheduler_addTask(id, priority, queue, task) {
  this.currentTcb = new TaskControlBlock(this.list, id, priority, queue, task);
  this.list = this.currentTcb;
  this.blocks[id] = this.currentTcb;
}
Add the specified task to this scheduler.
@param {int} id the identity of the task
@param {int} priority the task's priority
@param {Packet} queue the queue of work to be processed by the task
@param {Task} task the task to add