Changed YKNewTask to make system call after creation of new task and scheduler paradigm