摘要: 一个简单的线程创建代码 #include <pthread.h> #include <stdio.h> #include <stdlib.h> #define num 8 void *PrintHello(void *threadid){ int *id_ptr,taskid; sleep(1); 阅读全文
posted @ 2017-02-15 11:31 Erinlp 阅读(59) 评论(0) 推荐(0) 编辑
摘要: client.c代码如下: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/socket.h> #include <arpa/inet.h> #include <n 阅读全文
posted @ 2017-02-15 11:29 Erinlp 阅读(192) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h># include <stdlib.h># include <conio.h># define STACK_MAX_SIZE 20# define NULL 0struct BTreeNode{char data;struct BTreeNode *left;s 阅读全文
posted @ 2017-02-15 11:24 Erinlp 阅读(252) 评论(0) 推荐(0) 编辑