create thread_array.c