This tour is a practical introduction to ProActive, giving an illustrated introduction to some of the functionnalities and facilities offered by the library.
First off, we give an explaination on how to install and configure ProActive. Next are introduced the different functionalities of the library through some runnning examples. Then are given om details on how this is put down in code, and you will be challenged to write your bits of code. This should give you practical experience on how to program using ProActive. A section on OO-SPMD (Object-Oriented Single Program Multiple Data) will show how to use this programming paradigm.
The guided tour is finished off by the complete N-Body example. This application is first written trivially, then some speed-ups are plugged in, to show how ProActive can help you. We hope this will help your understanding of the library, and of the concepts driving it.
If you need further details on how the examples work, check the ProActive applications page.
Follow the instructions for downloading and installing ProActive.
The programming exercises in the first part imply that you :
Don't forget to add the required libraries to your classpath (i.e. the libraries contained in the ProActive/lib directory, as well as either the proactive.jar archive, or the compiled classes of proactive (better if you modify the source code)
use a policy file, such as ProActive/scripts/proactive.security.policy, with the JVM option -Djava.security.policy=/filelocation/proactive.java.policy
Set the CLASSPATH as follow :
Under linux :
export CLASSPATH=.:./ProActive_examples.jar:./ProActive.jar:./lib/bcel.jar:./lib/asm.jar:./lib/log4j.jar:./lib/xercesImpl.jar:./lib/components/fractal.jar:./lib/bouncycastle.jar
Under windows :
set CLASSPATH=.;.\ProActive_examples.jar;.\ProActive.jar;.\lib\bcel.jar;.\lib\asm.jar;.\lib\log4j.jar;.\lib\xercesImpl.jar;.\lib\components\fractal.jar;.\lib\bouncycastle.jar
Concerning the second part of the tutorial (examples of some functionalities):
Note that the compilation is managed by Ant ; we suggest you use this tool to make modifications to the source code, while doing this tutorial. Nevertheless, you can just change the code and compile using compile.sh <the example application> (or compile.bat under windows)
The examples used in the second part of this tutorial are provided in the /scripts directory of the distribution.
The scripts are platform dependant : .sh files on linux are equivalent to the .bat files on windows
© 2001-2005 INRIA Sophia Antipolis All Rights Reserved