int main(int argc, char **argv) { struct thread *t1 = thread_create(f1, NULL); thread_add_runqueue(t1); thread_start_threading(); printf("\nexited\n"); return 0; }
int main(int argc, char **argv) { printf("creating thread 1\n"); struct thread *t1 = thread_create(f1, NULL); thread_add_runqueue(t1); printf("creating thread 2\n"); struct thread *t2 = thread_create(f2, NULL); thread_add_runqueue(t2); printf("start threading\n"); thread_start_threading(); printf("exited\n"); return 0; }