12 int main(int argc, char **argv) {
16 if (argc == 2) num_threads = atoi(argv[1]);
17 printf("Process PID: %d\n", getpid() );
18 for (i=0; i<num_threads; i++)
22 if ((ret = pthread_create(&thread, NULL, loop, NULL)) != 0)
24 printf("pthread_create() failed. Error code %d\n", ret);
28 printf("Press ENTER to exit...");