Assignment 2 - Description
Generating the Fibonacci Sequence using Processes & Threads
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
Each group will use a different method/library in their program for generating the Fibonacci
sequence:
A: fork() & wait() in Linux
B: Win32 API (for processes)
C: POSIX shared memory
D: Pthreads (Linux)
E: Win32 threads
F: Runnable interface in Java
The detailed description is given below. The maximum number of students per group is three.
The date of submission is after the mid-semester break (16/11/2015). Each group will do a
presentation, but the submission of the assignment is individual. Please refer to the file
Assignment 2 Submission.docx for further details. Thanks.
Dr. Ashrani
Notes:
1. For Groups A, B & C, refer to exercise 3.13, 3.14 & 3.17 of Operating System
Concepts (8th Edition). For Groups D, E & F, refer to exercise 4.26 of Operating
System Concepts (9th Edition).
2. A suggested Linux distribution is Ubuntu (ubuntu.com). You should then be able to
compile your programs with gcc (GNU Compiler Collection).
3. For the Win32 API, you may use Visual C++ Express (older 2008/2010 version
suggested).
4. For Java, you may use the Netbeans IDE (Integrated Development Environment).