Linux下C和C++多线程基础示例POSIX pthread
C代码示例:gcc example.c -lpthread;
?注意thread和pthread_create的参数类型转换,以及extern “C”