RServe Java multiple threads (Unix)


On a unix environment it is possible for a threaded java application to call a single RServe instance. For each new connection RServe forks a new process. Each new connection has its own working directory. The working directory is retained if it is non empty, even when the connection is closed.

Example Program

The first step is starting the RServe instance.

Here’s the java threaded java code that uses the Rserve instance to service four java threads. The program solves a linear model.

RServe Java multiple threads (Unix)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top