I have a basic question about how ExecutorService
works in Java.
It is quite hard to see the difference between simply creating Threads
to
ExecutorService provides many advantages compared to plain threads
Even for a single Thread, I prefer to use Executors.newFixedThreadPool(1);
Have a look at related SE questions:
Java's Fork/Join vs ExecutorService - when to use which?
What are the advantages of using an ExecutorService?