Lines Matching refs:threads
245 * Wait for a wakeup, potentially wake up another of the "0-N" threads,
354 printf("Usage: zn <num threads> <chain | broadcast-single-sem | broadcast-per-thread> <realtime | timeshare | fixed> <num iterations> [-trace <traceworthy latency in ns>] [-spin] [-verbose]\n");
397 pthread_t *threads;
412 /* How many threads? */
445 /* Arrays for threads and their wakeup times */
446 threads = (pthread_t*) malloc(sizeof(pthread_t) * g_numthreads);
447 assert(threads, fail);
478 /* Create the threads */
481 res = pthread_create(&threads[i], NULL, child_thread_func, (void*)(uintptr_t)i);
502 /* Wait for worker threads to finish */
543 /* Let worker threads get back to sleep... */
547 /* Rejoin threads */
550 res = pthread_join(threads[i], NULL);