摘要:
getopt和getoptlong被用来解析命令行参数。 一、getopt #include <unistd.h> extern char *optarg; extern int optind, extern int opterr, extern int optopt; int getopt(int 阅读全文
摘要:
一、线程标识 和每个进程都有一个进程ID一样,每个线程也有一个线程ID,线程ID是以pthread_t数据类型来表示的,在Linux中,用无符号长整型表示pthread_t,Solaris 把phread_t数据类型表示为无符号整型,FreeBSD 和Mac OS X 用一个指向pthread结构的 阅读全文