Implement Alliance task & threadpool & scheduler