void thread_4() { int i; for (i = 0; i < 10; ++i) { printf("| | | | THREAD 4 |\n"); my_thread_sleep(7); } }
void thread_2() { int i; for (i = 0; i < 10; ++i) { printf("| | THREAD 2 | | |\n"); my_thread_sleep(5); } }
void thread_3() { int i; for (i = 0; i < 10; ++i) { printf("| | | THREAD 3 | |\n"); my_thread_sleep(6); } }
void thread_1() { int i; for (i = 0; i < 10; ++i) { printf("| THREAD 1 | | | |\n"); my_thread_sleep(4); } }
void func(int k, int l, int m){ k++; int i; for(i=0;i<l;i++){ printf("i'm %d: %d\n",k,i); my_thread_sleep(m); } }