Problem Set 2
Fall 2005
Due Date: Beginning of class, Friday, 16 September.
Complete the following problems from Silberschatz
- Problem 3.2 on page 116.
- Problem 3.4 on page 117.
- Problem 3.6 on page 117. Solve this problem in C on Linux using gcc.
Instead of having the child process just print out the result, however
make the following changes:
- The main program should ask the user for 3 numbers.
- The main program must then fork off three processes and pass each
process one of the numbers.
- The child must comput the Fibonacci sequence of that number
- The child must pass its result back to the parent process using
pipes.
- The parent must store the result of all children processing and,
only when all are finished, must print out the number and it's corresponding
Fibonacci sequence.
Place your completed code in a directory called "ProbSet2" in your home directory
on the Linux server (147.129.16.1). I will compile and grade your solution there.