Joining the threads which read from process streams