parallelized kernel threads running in java