if(waitingQueue.size()>0&&(runningFor==timeSlice||activeTask==null)){//we swap if we can and if we need to; we need to when the running period is over or the current task is not running anymore
if(waitingQueue.size()>0&&(runningFor==timeSlice||activeTask==null)){//we swap if we can and if we need to; we need to when the running period is over or the current task is not running anymore