TO 幕后黑手:
能否帮我翻译一下:
1. Write a miniature shell (command line interpreter) with the following standard features implemented:
1. I/O redirection,
2. pipe line filters
3. foreground background processing
4. process management short cuts.
5. environment variables.
2. Wite a program which takes a single integer argument n from the command line and creates a binary tree of processes, of depth n. When the tree is created , each process should display the phrase "I am process x" and then
terminate. The nodes of the tree should be numbered in the breadth-first traversal order. Make sure that that the original parent processdo
es not terminate until all of its children have terminated. This is so that you can terminate the parent and all of the children from the terminal witha Control-C.
3. Write a programme that creates a ring of three processes connected by pipes. The first process should prompt the user for a string and then
send it to the second process . The second process should reverse the string and send it to the third process. The third process should convert the string to uppercase and send it back to the first process. When the first process get the resultant string, it should display it to the terminal. When this isdo
ne, all three processes should terminate.
to magic6326:
比较简单,随手打上的。
1.编写一个小型的shell(由命令行解释),实现下面标准的要求。
1。I/O重定位
2。管道行过滤器
3。前台和后台处理
4。处理管理快捷(可能有误,请高手指点)
5。环境变量。
2。写一个能从命令行接受带有单个整型参数n的程序并且生成一个n层深度的进程二叉树。当树建立的时候每一个进程都应该显示语句“I am process x”然后中断。树的节点都应该按照宽度优先遍历的方式编码。保证原先的父进程的所有的孩子节点进程中断以后它才能中断。这样你才能中断父节点和所有的从终端用Control-C开始(这里有点别扭)的子进程。
3。写一个程序它能生成一个用管道连接起来三个进程的环。第一个进程应该提示用户输入一个字符串然后把它发送到第二个进程。第二个进程应该把此字符串倒置然后发送到第三个进程。第三个进程应该把它转换成大写然后再发回到第一个进程。当第一个进程接受到结果字符串时它应该在终端显示它。当显示完毕时所有的进程都应该中断。
to YFeral:
多谢,翻译得很清晰,再问一下,你认为这个程序在LINUX下用C来写怎么写?在WINDOWS下用C写呢?不介意的话加我MSN或QQ做些小单子。
to 幕后黑手:
看来还是我们中国高手的英文好点,虽然你说得自已很厉害,但我真的看不到厉害在哪里,加上看你回的贴看出你的性格像是一个还在学校读书的学生,多做点事少说些话吧,你说一次人家当是笑话也算了,不断的说那会搞得人家很烦的。