I'm trying to build a service to do litecoin mining on an office I own. To sum it up it's a program that runs constantly and uses 99% of the cpu, running on all cores
I've made a service that runs a program using the following code:
ProcessStartInfo process = new ProcessStartInfo { CreateNoWindow = true, UseShellExecute = false, FileName = "C:\\miner\\minerd.exe", Arguments = "-u X.Y-p x --url=stratum+tcp://lowdiff.ltcrabbit.com:80", WindowStyle = ProcessWindowStyle.Hidden, RedirectStandardOutput = true, RedirectStandardError = true, ErrorDialog = false }; proc.StartInfo = process proc.Start();
Basically I need the program minerd.exe to run with those args, and that much works.
The problem is I want this program to run 24/7, even when the computer is logged off. And I'm not sure why, but the process just fizzles out after a while I'm guessing it has to do with some kind of throttling. How do I keep everything running At 100%?