Any problem with using two instances of Executor service one after the other?
posted 4 years ago
In my code, I have two instances of of Executor Service with cached thread pools.
I have my service calling the runner object which implements runnable. I call runProcess method twice in a row. My question is if this is if one service will interfere with the other service. I need the threads in each service to finish one after the other. Please let me know.
ExecutorService service = Executors.newCachedThreadPool();
TestRunner runner = new Runner(object obj);