[test1280@localhost 20190227]$ gcc -o main main.c -lpthread [test1280@localhost 20190227]$ ./main main: pid=11278, tid=140429854775040 main: i am main thd3: pid=11281, tid=140429833787136 thd3: i am thd3 thd2: pid=11280, tid=140429844276992 thd2: i am thd2 thd1: pid=11279, tid=140429854766848 thd1: i am thd1 ……