How to run a function within loop and still keep loop running without waiting when the function2 completes?
int main(){ function1(); } function1(){ while(1){ function2(); } } function2(){ //some task that needs to do independently while, While loop runs }
function1()andfunction2()at the same time?function2(), you're going to get a lot of instances of it running simultaneously.