There are two functions a() and b(). I want to execute a first, then execute b after three seconds, then execute a after three seconds, and then execute b after three seconds, and it goes on like this.. How should I write it?
a and b are executed every six seconds, a is executed first, and b is executed every three seconds. . . Otherwise, if the function execution time is taken into account, the three seconds interval is not the exact three seconds
a and b are executed every six seconds, a is executed first, and b is executed every three seconds. . . Otherwise, if the function execution time is taken into account, the three seconds interval is not the exact three seconds