Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 145731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:28:32+00:00 2026-05-11T08:28:32+00:00

I have a command line EXE written in C#. It’s log parser that grinds

  • 0

I have a command line EXE written in C#. It’s log parser that grinds through several GB worth of log files every night.

It pegs the processor at 100% for quite a while. Not ideal.

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.

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:28:33+00:00Added an answer on May 11, 2026 at 8:28 am

    You can set the priority of the threads using the Thread.Priority property.

    Of course, if there’s nothing else trying to run that will still use 100% CPU – but I guess in that case you don’t mind so much.

    Does your application create any other threads or use the thread pool? If it does, you’ll probably want to make sure those threads have a reduced priority too.

    EDIT: Setting the process’s overall priority is probably a better solution in general, but I’ll leave this one up as an alternative.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a c program that retrieves arguments from the command line under
I have a command line executable that alters some bits in a file that
I have a command-line utility that gets quite a bit of downloads from my
I have a small command line program that uses the Team System API. When
I have a small command line utility project that I'm using Maven to manage.
Specifically I have a PHP command-line script that at a certain point requires input
I have a makefile project that builds and links a DLL, using the command-line
HI, I have a simple~ish command line app written in c#. I now need
I have a command line program, which outputs logging to the screen. I want
I have a command line Ruby app I'm developing and I want to allow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.