MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: LaunchKernels[] and Java

  • To: mathgroup at
  • Subject: [mg128000] Re: LaunchKernels[] and Java
  • From: David Bailey <dave at>
  • Date: Sat, 8 Sep 2012 03:07:48 -0400 (EDT)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • References: <k2cd6d$f5s$>

On 07/09/2012 10:02, tredmond59 at wrote:
> I have a machine with 8 cores and I have been getting amazing results with the parallel computation.  LaunchKernels[] gives me 4 kernels and many of my problems actually are probably running something like four times as fast.  This is really awesome!
> But I am wondering if I can get Java to connect to all of these kernels.  I have some java code that I invoke from the mathematica user interface. This program will often run overnight or even for more than a day. I figured if Java will talk to all these kernels then I could divide the problem and it would run much faster.  (Conceptually the problem splits up nicely.)
> Does anyone know how to do this?
> -Timothy
I suspect the 4 kernel limit may be determined by your license.

I am pretty sure if you use J/Link in 4 kernels, you will get 4 copies 
of Java running.

I'd communicate to Java from one kernel, but then use threads within the 
Java to spread the load across the available CPUs.

David Bailey

  • Prev by Date: Re: Landau letter, Re: Mathematica as a New Approach...
  • Next by Date: Sum command
  • Previous by thread: LaunchKernels[] and Java
  • Next by thread: Re: LaunchKernels[] and Java