Multithread cminer.