Thread Per-Request (Cont.) /* now we may launch a new handler thread. */ p_ht_data = (struct handler_thread_data*) malloc(sizeof(struct handler_thread_data)); p_ht_data->threads = pdata->threads; p_ht_data->request = r; pthread_create(&thread, NULL, handle_request, p_ht_data); }