![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
nan_x_
这个作者很懒,什么都没留下…
展开
-
linux入门
linux 下将一个文本的内容逆序输出 正常输出文件内容: cat 文件名 --小文件 more 文件名 --大文件 head -n 文件名 – 输出文件的前n行 tail -n 文件名 – 输出文件的后n行 tac 文件名 – 按行逆序输出文件内容 rev 文件名 – 每行的内容逆序输出 ...原创 2019-03-22 09:49:34 · 135 阅读 · 0 评论 -
多线程编程1
线程thread 线程的有关函数和类型定义在头文件 <pthread.h>中 创建线程 pthread_t pthread_create(pthread_t* thread,pthread_attr_t*attr_t,void * ( * start_routine)(void * ),void * arg); 第一个参数——指向pthread_t类型数据的指针。线程被创建时,这个指针...原创 2019-04-23 20:02:55 · 212 阅读 · 0 评论 -
多线程编程2
//信号liang 同步 #include<stdio.h> #include<unistd.h> #include<pthread.h> #include<stdlib.h> #include<semaphore.h> //sem_ #include<string.h> voidthread_fun(voidarg);...转载 2019-04-24 00:22:23 · 145 阅读 · 0 评论