Test of creating multithreaded program in C