Searched refs:N_THREADS (Results 1 – 2 of 2) sorted by relevance
13 #define N_THREADS 3 macro30 pthread_t child[N_THREADS]; in main()32 sem= my_sem_init("sem1", 0, N_THREADS); assert(sem); in main()34 for (i = 0; i < N_THREADS; i++) { in main()39 for (i = 0; i < N_THREADS; i++) { in main()
7441 const int N_THREADS = 2, variable7464 int lower_bound = ARRAY_SIZE * (myId-1) / N_THREADS, in Worker()7465 upper_bound = ARRAY_SIZE * ( myId ) / N_THREADS; in Worker()7488 const int N_THREADS = 2, variable7509 int lower_bound = ARRAY_SIZE * (myId-1) / N_THREADS, in Worker()7510 upper_bound = ARRAY_SIZE * ( myId ) / N_THREADS; in Worker()7579 const int N_THREADS = 1, variable7605 ThreadPool pool(N_THREADS); in Run()7607 for (int i = 0; i < N_THREADS; i++) { in Run()7618 const int N_THREADS = 1, variable[all …]