Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

We build a project with Java and Mathematica technologies. For this project we have written a bunch of functions in Mathematica and integrated some functions in one JSP file. In this way, we made four JSP files containing Mathematica code. These JSP (in which files Mathematica functions are integrated) files are linked and triggered by Java servlet's.

Note: for every request, Mathematica (four JSP) files should be run. We are using Mathematica for back-end computations purpose.

I have two Mathematica kernels, thus my question is:

How can I use these two kernels efficiently for processing requests?

I've never worked on more kernels than two, if anyone has some experience on that point please let me know.

share|improve this question
6  
After all that time and your 77 questions you still can't format your questions in a proper way. Please make an effort. –  Öskå Sep 27 '13 at 12:07
    
@Öskå It is actually 103 questions but the rest were deleted. This user is now on an extended suspension. –  Mr.Wizard Sep 27 '13 at 17:17
    
@Öskå perhaps it's better when he doesn't format at all: mathematica.stackexchange.com/a/19912/193 –  belisarius Sep 27 '13 at 20:14
    
Though the question in itself is not useless. MSPConfiguration.xml can be overwhelming at first sight. See my answer. –  Rolf Mertig Sep 27 '13 at 20:53
1  
@Rolf There is no doubt that some of subbu's questions were quite interesting. We did our best to encourage him to follow site guidelines and think through his questions before asking but it did not improve. While I am not overly optimistic it is nevertheless my sincere desire that after this third and longest suspension subbu will finally learn what makes a good question and ask only those, properly formatted. I think we would all be glad to have him back were that the case. –  Mr.Wizard Sep 28 '13 at 3:35
show 1 more comment

1 Answer 1

Put a 2 in MSPConfiguration.xml like explained here

<KernelNumber>
2
</KernelNumber>

and then your kernels are used efficiently in that sense that if one kernel is busy serving one request, then another one is available if another request happens at the same time the first kernel is still running.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.