title: How can you throttle a long-running command-line EXE to avoid pegging the CPU?
body: <p>I have a command line EXE written in C#.  It's log parser that grinds through several GB worth of log files every night.</p>
  
  <p>It pegs the processor at 100% for quite a while.  Not ideal.</p>
  
  <p>How could I "throttle" the app?  It can take as long as it wants, but I'd rather have it use less of the total CPU.</p>
  
  <p>Is there some coding method or theory to make an EXE slow down and take less CPU?  I can't do anything in the environment it runs (like change the process priority), so any changes have to be within the code of the app itself.</p>