View Single Post
Old 11-17-2010   #1
JaSS.lb
Registered Member
 
JaSS.lb's Avatar
 
Last Online: 06-20-2011
Join Date: Mar 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Operating system

plz some help for my project i don't know how to do it
Operating System ===> Ubuntu ====> C language

The Project Is:

The Fibonacci Sequence is the series of numbers 0, 1, 1, 2, 3, 5, 8, ....
Formally, it can be expressed as:
fib0 = 0;
fib1 = 1;
fibn = fibn-1 + fibn-2;
Write a program C using the fork() system call that generates the fibonacci sequence in the child process. the number of sequence will be provided in the command line. for example, if 5 is provided, the first numbers in the fibonacci sequence will be output by the child process. because the parent and child processes have their own copies of data, it will be necessary for the child to output sequence. have the parent invoke the wait() call to wait for the child process to complete before exiting the program. perform the necessary error checking to ensure that non-negative number is passed on the command line.
JaSS.lb is offline   Reply With Quote