Blocked pthread for - computeDistance
Test and verified