September 2017
— That pack reached you as well, hah
timings[loc] = process.hrtime();var sysCall = proc.instance.next(proc.events);timings[loc] = process.hrtime(timings[loc])timings[loc][1] = proc;
Scheduler.prototype.opt = function (timings) { timings.sort((d1, d2) => d1[0] - d2[0]); this.queue = timings.map(timing => timing[1]);};
— Wow
— Starting to look good
— Not understandable for me though
— :P
— Basic SJF priority scheduler
— Kind of surprised it is so small... bahaha
— Https://en.wikipedia.org/wiki/Shortest_job_next
— Aaah
— I see
— How would it know though?