This is to parallelize the libnids on a multi-core computer.