Adding the 4 threads in parallel to process data