文件名称:assign4
介绍说明--下载内容均来自于网络,请自行研究使用
第1部分
该纳契系列:0,1 ,2,3,5,8,13,21,...。开始的条款0和1,并有
每一个成功的财产一词,是前两个条件的总和。编写一个非递归
功能纳契(n)到显示的前n个Fibonacci数。观看停止对样品标志
在最后显示的数字输出(它不是逗号)。编写一个简短的UNIX shell脚本来运行
您的斐波那契程序。
第2部分
编写一个C程序,使用UNIX进程管理工具。您将使用fork()函数
产卵的三子进程。每个子进程将使用execlp()函数来运行
应用程序或UNIX命令,每个进程将产生顺序。-Part1
The Fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13, 21, …. begins with the terms 0 and 1 and has the
property that each succeeding term is the sum of the two preceding terms. Write a non-recursive
function Fibonacci (n) to display first n Fibonacci numbers. Watch the stop sign on the sample
output after the last displayed number (it is not comma). Write a short UNIX shell scr ipt to run
your Fibonacci program.
Part2
Write a C program that uses UNIX process management utility. You will use the fork( ) function
to spawn 3 child processes. Each child process will use the execlp( ) function to run an
application or UNIX command, and each process will be generated in sequential order.
该纳契系列:0,1 ,2,3,5,8,13,21,...。开始的条款0和1,并有
每一个成功的财产一词,是前两个条件的总和。编写一个非递归
功能纳契(n)到显示的前n个Fibonacci数。观看停止对样品标志
在最后显示的数字输出(它不是逗号)。编写一个简短的UNIX shell脚本来运行
您的斐波那契程序。
第2部分
编写一个C程序,使用UNIX进程管理工具。您将使用fork()函数
产卵的三子进程。每个子进程将使用execlp()函数来运行
应用程序或UNIX命令,每个进程将产生顺序。-Part1
The Fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13, 21, …. begins with the terms 0 and 1 and has the
property that each succeeding term is the sum of the two preceding terms. Write a non-recursive
function Fibonacci (n) to display first n Fibonacci numbers. Watch the stop sign on the sample
output after the last displayed number (it is not comma). Write a short UNIX shell scr ipt to run
your Fibonacci program.
Part2
Write a C program that uses UNIX process management utility. You will use the fork( ) function
to spawn 3 child processes. Each child process will use the execlp( ) function to run an
application or UNIX command, and each process will be generated in sequential order.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
assign4\Assignment04_Description.pdf
.......\ClassInfo.txt
.......\fibonacci.sh
.......\fibonacci.sh.bak
.......\README.txt
.......\Sample output.pdf
.......\UpdatedClassInfo.txt
.......\xyi5_a3_p2.c
.......\xyi5_a3_p2.c.bak
.......\xyi5_a4_p1.c
.......\xyi5_a4_p1.c.bak
.......\xyi5_a4_p1.exe
.......\xyi5_a4_p2.c
.......\xyi5_a4_p2.c.bak
.......\xyi5_a4_p2a.c
.......\xyi5_a4_p2a.c.bak
assign4
.......\ClassInfo.txt
.......\fibonacci.sh
.......\fibonacci.sh.bak
.......\README.txt
.......\Sample output.pdf
.......\UpdatedClassInfo.txt
.......\xyi5_a3_p2.c
.......\xyi5_a3_p2.c.bak
.......\xyi5_a4_p1.c
.......\xyi5_a4_p1.c.bak
.......\xyi5_a4_p1.exe
.......\xyi5_a4_p2.c
.......\xyi5_a4_p2.c.bak
.......\xyi5_a4_p2a.c
.......\xyi5_a4_p2a.c.bak
assign4