While creating two different tasks of same priority, only printf in task1 is working. After some delay function in 1, it works for only one time and task2 printf works for like 3 or 4 time then again back to task1 . Can someone please help me to solve this since I am new to this. Thank you