In a traditional SPMD program, the concept of switching the active process group is reflected by if statement,
if(myid>=0 && myid<4) { ... }
In HPjava,
on(p) { ... }