Final submitted wtc_threads.c