In reply to dave_59:
Hi Dave, In the first example by @roopatoms, I understand why t_name gets overwritten since t_name is a static variable. Why isn’t time_t a static variable as well? time_t is also just an argument to the task similar to t_name in this case.
[10] thread_1
[15] thread_1
[20] thread_1
Since thread1 seems to have been the last executed in this case, shouldn’t all tasks be delayed by the last time_t (15) instead of variable delay?
Thanks