public void Call(ReaderService readerService, string inputFilePath) { globalPartIndex = 0; service = readerService; inputStream = new FileStream(inputFilePath, FileMode.Open, FileAccess.Read, FileShare.Read); SeekStart(inputStream); var procCount = service.GetProcessorCount(); for (var index = 0; index < procCount - 1; index++) { new Thread(ReaderWorkerStart).Start(); } }