if (pthread_create(&threads[i].thread, NULL, benchmark_thread, &threads[i]) != 0) {
fprintf(stderr, "Error launching thread!\n");
exit(1);
if (pthread_create(&threads[i].thread, NULL, benchmark_thread, &threads[i]) != 0) {
fprintf(stderr, "Error launching thread!\n");
exit(1);