![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
并发
并发
aningxiaoxixi
此人很聪明,一看就会,所以不写
展开
-
exit函数思索
1 exit 对比 returnexit 被 main 函数或者其他函数调用,都会结束程序return 被 main 函数调用才会结束程序,但是其他函数调用不会结束 1 #include<stdio.h> 2 #include<stdlib.h> 3 int fun() 4 { 5 // exit(0); 6 return 0; 7 } 8 int main() 9 { 10 printf("111\n"); 11原创 2021-01-31 18:35:13 · 106 阅读 · 0 评论 -
pthread_create 思索
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <pthread.h> 5 #include <unistd.h> 6 int message=10; 7 void printids(const char *str) { 8 pid_t pid = getpid(); 9 pthread_t t..原创 2021-01-31 11:40:13 · 77 阅读 · 0 评论