![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
第一阶段C语言
jieop87
这个作者很懒,什么都没留下…
展开
-
验证进程一些结论
1、验证在挂起队列中,没有相同信号。//验证挂起队列中没有相同信号#include <stdio.h>#include <stdlib.h>#include <signal.h>#include <sys/types.h>#include <sys/wait.h>#include <unistd.h>void parent_fun(int sig){ printf("catch sig: %d\n", sig原创 2020-11-05 23:21:44 · 348 阅读 · 0 评论 -
父子进程阻塞和响应
1、编写一段程序,使用系统调用函数fork( )创建两个子进程,再用系统调用函数signal( )让父进程捕捉信号SIGINT(用kill命令来触发),当捕捉到中断信号后,父进程用系统调用函数kill( )向两个子进程发出信号,子进程捕捉到父进程发来的信号后,分别输出下列信息后终止: Child process 1 is killed by parent! Child process 2 is killed by parent! 或者...原创 2020-11-04 17:25:23 · 879 阅读 · 1 评论 -
父子进程(进程扇、进程链)
1、用进程相关API函数编程一个程序,使之产生一个进程扇:父进程产生一系列子进程,每个子进程打印自己的PID然后退出。要求父进程最后打印PID。#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/types.h>#include <sys/wait.h>int main(int argc, char const *argv[]){ pi原创 2020-11-03 12:54:35 · 1986 阅读 · 0 评论 -
开发板电子相册滑动切换、递归目录(c语言)
/*实现电子相册功能硬件需求:在GEC6818开发板展示电子图片,LCD显示屏,触摸屏,U盘,软件功能需求:1)点击/滑动触摸屏,控制LCD显示屏显示图片,2)自动筛选某个目录下的ebm图片文件,*//* ******************头文件*************************** */#include <stdio.h>#include <stdlib.h>#include <stdbool.h>#includ...原创 2020-10-19 19:42:27 · 6874 阅读 · 0 评论 -
【C语言】在LCD(/dev/fb0)上点击触摸屏(/dev/input/event0)切换显示图片
#include <stdio.h>#include <stdlib.h>#include <stdbool.h>#include <string.h>#include <strings.h>#include <errno.h>#include <sys/types.h>#include <sys/mman.h>#include <fcntl.h>#include <unist原创 2020-10-17 13:03:01 · 6314 阅读 · 1 评论 -
用C语言、系统IO实现文件复制(带进度条)
#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <strings.h>#include <string.h>#include <stdlib.h>#define SIZE 50 //堆或者数组buffer的大小#de...原创 2020-10-13 14:34:28 · 1416 阅读 · 1 评论