Refactored taskmanager with multiple task queues, one per CPU - to be used by refactored socket code.