I have 3 classes, each one which implements Runnable. What would be the ideal way of using Executor/ExecutorService so I don't need to use Thread.start() method in each one of them?
Thanks for the tip, but I'm looking for something more simple where I could use Future, something like this:
But I'm clueless how to properly implement that functionality into my class in the first post (and my two other classes). Do I need to send the objects to the threadpool in the constructors of my classes?