Added readWriteThread.c