updated twoThreads.c