I have this doubt, i am using freertos to create tasks. There is always one task which is active. It will trigger other tasks based on the external serial data uart. Say i received data as 1 and run Task1, if i receive data as 2 i run Task2. But before running Task2 i want to confirm if Task1 has exited properly. I am not sure how to do. Please advise.