Skeleton<Board, Count> nqueens = //Always subdivide the first row.
new Map<Board, Count>(new DivideBoard(), subskel, new ConquerCount());
//2. Create a new Skandium instance with 2 execution threads
Skandium skandium = new Skandium(THREADS);
//3. Open a Stream to input parameters
Stream<Board, Count> stream = skandium.newStream(nqueens);
//4. Input parameters
long init = System.currentTimeMillis();
Future<Count> future = stream.input(new Board(BOARD));
//5. Do something else here.
//...
//6. Block for the results
Count result = future.get();
System.out.println(result+" in "+(System.currentTimeMillis() - init)+"[ms]");
//7. Shutdown the system
skandium.shutdown();
}