#include #include #include #include #include #include #include static void *myfunc1(void *arg) { printf("%s %p %lu\n", __FUNCTION__, arg, GetCurrentThreadId()); fflush(stdout); sleep(10); return arg; } static void *myfunc2(void *arg) { printf("%s %p %lu\n", __FUNCTION__, arg, GetCurrentThreadId()); fflush(stdout); sleep(10); return arg; } int test_main(int argc, char *const argv[]) { #define N 10 toku_pthread_t t[N]; int i; for (i=0; i