Reversed order of task selection - now we first try to execute tasks with biggest `threads` value. This leads to much better resource utilization.