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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 107k
  • Answers 107k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The short answer is that you can't. When you write… May 11, 2026 at 9:06 pm
  • Editorial Team
    Editorial Team added an answer If you are using jQuery's UI Datepicker you can bind… May 11, 2026 at 9:06 pm
  • Editorial Team
    Editorial Team added an answer Try something like this: public class CustomModelBinder : DefaultModelBinder {… May 11, 2026 at 9:06 pm

Related Questions

I have a command line EXE written in C#. It's log parser that grinds
i have written a c program to which i pass in a script like
I am trying to compile the Python bindings for OpenSSL (pyOpenSSL) on Windows Vista
I have written a really small 64-bit application that crashes on clean installations of
I have a command-line utility that gets quite a bit of downloads from my

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.