I have a Python script set up where it instantiates Rserve, sets up a few R scripts and functions and then runs some data against the functions. However, I have been unable to create a multi-threaded instance of this same process. My core issue is that one thread always seems to dominate the processing and all of the other threads are ignored.
I've made the assumption that pyRserve can be multi-threaded - is that a correct assumption? Are there any examples out there that show this as a multi-threaded app?
I kept on working with the code and it turns out that each thread needs its own port in order to work. I didn't find that documented anywhere, I was just trying out different idea. So:
Multi-threading is now working as desired and fast!