Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually, if you start working out which one is the next to run, you have reinvented selection-sort and you are no longer linear time. (Hence why this is not a sensible sorting algorithm in reality :) )


Which is why I wrote:

>After all, all the sorting work was already done when the threads started sleeping, having registered themselves with the orchestrator (timer wheel etc) that will eventually wake them up.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: