[test1280@localhost 20190227]$ gcc -o main main.c -lpthread [test1280@localhost 20190227]$ ./main main: i am main thd2: i am thd2 thd3: i am thd3 thd1: i am thd1 thd2: i am thd2 ……