Closed hlms closed 7 years ago
Yes, it's fine on unix since unix supports parallel connections. Windows doesn't so the threads will be running in parallel but they will transfer sequentially - i.e. only the first thread will be connected and the other threads will get a connection one at a time only after the first thread is done. So you can use the same code, but on Windows it won't actually be able to do anything in parallel due to limitations in the Windows OS.
Awesome! Thanks for the quick response! :)
Need to download few files from RServe.
I have written the following code which creates several threads, and downloads the files in multithreading. So far so good. It seems to be working fine on both - unix and windows.
But is it okay to use multithreading with RConnection and openFile() method?