I have three threads that are joined, i.e. the second thread executes after the first dies.
This is the code I have:
public class Main {
public s
If you already use a thread pool in your application, you can reuse it by means of zero-threaded proxy serial executor, without creating special single threaded thread pool. One implementation is described in the javadoc section of Executor interface, another, optimized implementation, at my Github repository CodeSamples.