简单模拟线程调度器的代码

Signed-off-by: xiaolan <leiyujike1107@gmail.com>