Ex1 Practical: Script PARallel CaLculator : Part 1


Background:

At times a list of complex weakly interdependent computations has to be performed. In this exercise you'll implement a version of such parallel script calculator. Given a list of calculations your program will perform them in parallel using multi-process paradigm.

Assignment:

Your assignment is to build a program sparcl that will implement the following service: The precise requirements are as following:

Input examples:


R1 = 0
R2 input
R0 + R1 R2

R1 = 5
R2 fact 3
R4 + R2 1
R5 * 5 R1

T0 = R1
R1 = R2
R2 = T0

Possible design pattern:


Recommendations and additional requirements:


System Calls and Functions List

You may use stdio library functions in order to read user's input and to print the messages. You are advised to use string library functions, such as strtok() to manipulate strings.

Bibliography


Submit

Submit a tar file on-line containing the following: Do NOT submit a hardcopy of the program

Important

The exercise in not hard, but it is time consuming since you have to learn a lot of new material. Start early!

Due date: 13.03.03

Grading notice:

The grade will be computed governed by the following division:

Good luck!

To the course home page