Alan Kaminsky Department of Computer Science Rochester Institute of Technology 4486 + 2344 = 6830
Home Page

Parallel Java Library

Prof. Alan Kaminsky
Rochester Institute of Technology -- Department of Computer Science

Overview
Books and Publications
Preinstalled Version
Download Version
System Requirements
Installation
Usage
License
Documentation (Javadoc)


Overview

Parallel Java (PJ) is an API and middleware for parallel programming in 100% Java on shared memory multiprocessor (SMP) parallel computers, cluster parallel computers, and hybrid SMP cluster parallel computers. PJ was developed by Professor Alan Kaminsky and his student Luke McOmber in the Department of Computer Science at the Rochester Institute of Technology.

I am happy to answer general questions about the Parallel Java Library, receive bug reports, and entertain requests for additional features. Please contact me by email at ark­@­cs.rit.edu. I regret that I am unable to provide technical support, specific installation instructions for your system, or advice about configuring your parallel computer hardware.


Books and Publications

Books about PJ:

Alan Kaminsky. Building Parallel Programs: SMPs, Clusters, and Java. Cengage Course Technology, 2010. ISBN 1-4239-0198-3.
Jonathan Jude. Fast Guide to using the RIT PJ Parallel Java Library: An Introduction to Java Parallel Programming using an API. Books on Demand, 2008. ISBN 978-3-8370-2439-5.

Publications and presentations about PJ:

Resources for teaching and learning PJ:


Preinstalled Version

PJ is installed on the Computer Science Department computer systems. When working in your Computer Science Department account, use the preinstalled version.

Classpath -- /home/fac/ark/public_html/pj.jar

Add that JAR file to your classpath when you run the programs. See Usage below for further information.

Documentation -- /home/fac/ark/public_html/pj/doc

Point your HTML browser to that directory or to this URL: http://www.cs.rit.edu/~ark/pj/doc/index.html

See "PJ on the RIT CS Parallel Computers" for further information about running PJ programs on the Computer Science Department's parallel computers.


Download Version

The download version of PJ is for installation on your personal computer only. Do not install it in your Computer Science Department account. When working in your Computer Science Department account, use the preinstalled version (see above).

There are two versions of the PJ distribution that you may download, an executable distribution and a source distribution.

Executable distribution. The executable distribution comes in a Java Archive (JAR) file named "pjYYYYMMDD.jar", where YYYYMMDD are the year, month, and date. The executable distribution includes the PJ class files only.

Version 20-Jun-2012 (1,466,004 bytes): pj20120620.jar

Source distribution. The source distribution comes in a Java Archive (JAR) file named "pjsrcYYYYMMDD.jar", where YYYYMMDD are the year, month, and date. The source distribution includes the PJ class files, source files, and documentation files (Javadoc).

Version 20-Jun-2012 (8,911,706 bytes): pjsrc20120620.jar


System Requirements

PJ was developed using Java Development Kit (JDK) 1.5. When compiling and running PJ programs, you must use JDK 1.5. PJ uses features of the Java language and platform introduced in JDK 1.5 and will not compile with earlier JDK versions.

PJ will work with JDK 1.6 and 1.7. However, my tests have revealed serious performance issues when a multithreaded PJ program is run on an SMP parallel computer with JDK 1.6 or 1.7. Due to some as-yet-unfathomed behavior of the JIT compiler and/or the thread scheduler, SMP parallel programs that experienced near-ideal speedups with JDK 1.5 experience far-less-than-ideal speedups with JDK 1.6 or 1.7 on the same machine. For now I recommend using PJ with JDK 1.5.


Installation

Executable distribution. To install the executable distribution, simply store the JAR file somewhere. You may wish to change the file name, say to "pj.jar".

Source distribution. To install the source distribution, just unpack the JAR file. The source distribution expands into a subdirectory named "pj". If you already have a subdirectory of that name which you want to save, be sure to unpack the JAR file in some other directory. Documentation is stored under the directory "pj/doc"; point your HTML browser to that directory. Java source files and class files are stored under the directory "pj/lib".

Installation on a SMP computer. To run PJ programs on a shared memory multiprocessor (SMP) parallel computer, no further installation is required.

Installation on a cluster. To run PJ programs on a cluster parallel computer, in addition to installing the PJ JAR file, you must configure and run certain daemon processes on the frontend and backend processors of the cluster. For further information, see package edu.rit.pj.cluster.


Usage

Executable distribution. When compiling and executing Java programs that use PJ, if you have installed the executable distribution, you must set your classpath to include the PJ JAR file. Here is an example of a command for the bash shell to set the classpath to the current directory plus the PJ JAR file:

export CLASSPATH=.:/home/fac/ark/public_html/pj.jar

Here is an example of a command for the csh shell to set the classpath to the current directory plus the PJ JAR file:

setenv CLASSPATH .:/home/fac/ark/public_html/pj.jar

Source distribution. When compiling and executing Java programs that use PJ, if you have installed the source distribution, you must set your classpath to include the top-level directory under which PJ's Java class files are stored. Here is an example of a command for the bash shell to set the classpath to the current directory plus the PJ directory:

export CLASSPATH=.:/home/fac/ark/public_html/pj/lib

Here is an example of a command for the csh shell to set the classpath to the current directory plus the PJ directory:

setenv CLASSPATH .:/home/fac/ark/public_html/pj/lib


License

The documentation files, Java source files, and Java class files in the Parallel Java Library ("PJ") are copyright © 2005-2012 by Alan Kaminsky. All rights reserved. For further information, contact the author, Alan Kaminsky, at ark­@­cs.rit.edu.

PJ is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

PJ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

A copy of the GNU General Public License is provided in the file gpl.txt. You may also obtain a copy of the GNU General Public License on the World Wide Web at http://www.gnu.org/licenses/gpl.html.

Alan Kaminsky Department of Computer Science Rochester Institute of Technology 4486 + 2344 = 6830
Home Page
Copyright © 2012 Alan Kaminsky. All rights reserved. Last updated 20-Jun-2012. Please send comments to ark­@­cs.rit.edu.