Parallel IT · Pyjama
Pyjama — Examples
1. Hello, World!
A basic example using Pyjama directives — the for loop is executed by different threads in
parallel:
//#omp parallel for
for (int i = 0; i < 10; i++) {
System.out.println("Hello world from parallel code, executed by "
+ Pyjama.omp_get_thread_num());
}
2. Mandelbrot Set
Shows how the Mandelbrot Set is rendered as a desktop application using the Pyjama virtual target. Left-click to zoom in, right-click to zoom out, and compare the sequential and Pyjama versions to see how canvas rendering improves. Download the source code.
3. EvoLisa!
A GUI application implementing the EvoLisa algorithm using Pyjama. Download the project source or the APK directly (requires minimum Android SDK 4.0.3).