test of multithreaded code in C