Calculation of errors runs in several threads