![]() |
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. |
I'm not sure if this is what you want, but give it a try:
Code:
#include <stdio.h> |
Thx Tawa For The Solution :)
|
| All times are GMT +1. The time now is 05:30 AM. |
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger