Question: #include #include #include #define NTHREADS 10 pthread_t threads[NTHREADS]; void go (int n) { printf(Hello from thread %d , n); thread_exit(100 + n); // REACHED? }
#include
Suppose that we delete the second for loop so that the main routine simply creates NTHREADS threads and then prints Main thread done. What are the possible outputs of the program now?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
