文件名称:HW2
介绍说明--下载内容来自于网络,使用问题请自行百度
This program is to give you practice in the use of UNIX functions fork() and pipe() and to implement message communication between processes. In this program you will implement a simple UNIX shell in C. The shell reads a command line from the input, and it forks a process to execute that command. UNIX fork() command automatically duplicates all open file descr iptors in the child. As a result, the input and output devices for the child are the same as that of the parent. The parent will wait for the child to finish before it reads the next command. Recall in UNIX programs the read and write commands are the same whether your input/output device is a keyboard/screen or files or pipes. With appropriate file descr iptors you can designate any device for input input/output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : HW2.cpp.zip 列表 HW2.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.