Added sched_yield() to yield processor after execution of task