How can I start a separate kernel to do other work, while I have Mathematica working on a problem that requires lots of computation time?

I have a program that must be run for many hours, preventing me from working on another project on that session. So I was wondering if it's possible to initiate a new kernel and work on my other projects? What's the best way to accomplish this?

  • 1
    $\begingroup$ Go to Evaluation => Kernel Configuration Options => Add Kernel. Then open a new notebook and select which kernel it should use from the menu Evaluation => Notebook's Kernel. $\endgroup$
    – C. E.
    Commented Jan 17, 2015 at 9:41
  • 1
    $\begingroup$ @Pickett Many Thanks! $\endgroup$ Commented Jan 17, 2015 at 9:56
  • $\begingroup$ It might be a better solution to start a separate front end as well, for added safety: if your front end crashes, it will also take down all the kernels attached to it. If you accidentally close the front end, it's the same. I believe it should be possible to start multiple front ends, but the method should depend on your operating system. Which OS are you using? $\endgroup$
    – Szabolcs
    Commented Jan 17, 2015 at 16:19
  • $\begingroup$ @Szabolcs I'm using Win8. $\endgroup$ Commented Jan 17, 2015 at 20:13
  • 2
    $\begingroup$ @Anoldmaninthesea. It took me some time before I could test this, but it appears that on Windows it is possible to launch multiple instances of Mathematica without needing to do anything special. Whenever I needed to run a long calculation, I did it in a completely separate instance for additional safety (protection against crashes or my own mistakes). $\endgroup$
    – Szabolcs
    Commented Jan 19, 2015 at 17:36


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.