This is the command processor implementation using tasks and the thread pool.