1、创建一对父子进程
父进程负责:打开文件,向文件中写入键盘键入的数据
子进程负责:打开相同的文件,从文件中读取刚才键入的数据
注意:想办法保证先写入数据,后读取数据
2、编写2个进程
进程1:负责使用execl 替换成 shell指令 find /usr -name include
进程2:负责使用execv 替换成 shell指令 find /usr -name include
1、创建一对父子进程
父进程负责:打开文件,向文件中写入键盘键入的数据
子进程负责:打开相同的文件,从文件中读取刚才键入的数据
注意:想办法保证先写入数据,后读取数据
2、编写2个进程
进程1:负责使用execl 替换成 shell指令 find /usr -name include
进程2:负责使用execv 替换成 shell指令 find /usr -name include