implement TaskSchedulerImpl in Posix