A test code for pthread in UNIX