use new thread in child process to send aggregated data to master process