I have a java class that creates a process, called child, using ProcessBuilder. The child process generates a lot of output that I am draining on a separate thread to keep the
You have to assign your thread to a variable and later call join() on this variable.
join()