Replace ParallelFor with loop
Using ParallelFor creates New threads, instead of reusing the threadpool, this fixes it. See also https://support.astron.nl/jira/browse/RAP-436
Edited by Sarod Yatawatta
Using ParallelFor creates New threads, instead of reusing the threadpool, this fixes it. See also https://support.astron.nl/jira/browse/RAP-436