Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How To Reduce CPU Usage ?

How To Reduce CPU Usage ?

Scheduled Pinned Locked Moved C#
helptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AmbiguousName
    wrote on last edited by
    #1

    Hello. I have got this multithreaded video player desktop application. Now this is my first experience with multithreaded apps so I don't know a lot of things. One thing that I can tell is that this application is running with 32-34 threads (using Resource Monitor) and CPU jumps from 2%-6% to 58%-62%. Starting - from analyzing the code that takes this much CPU - to remedy this problem What could I do to reduce this CPU usage ? Should I be modifying the code (to make it efficient) or are there any other things that I could try

    This world is going to explode due to international politics, SOON.

    B 1 Reply Last reply
    0
    • A AmbiguousName

      Hello. I have got this multithreaded video player desktop application. Now this is my first experience with multithreaded apps so I don't know a lot of things. One thing that I can tell is that this application is running with 32-34 threads (using Resource Monitor) and CPU jumps from 2%-6% to 58%-62%. Starting - from analyzing the code that takes this much CPU - to remedy this problem What could I do to reduce this CPU usage ? Should I be modifying the code (to make it efficient) or are there any other things that I could try

      This world is going to explode due to international politics, SOON.

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #2

      1. Is it your code ? 2. If not your code, are you capable of understanding, modifying, and testing the code ? If the answer to either of these questions is yes, then you need to help us understand what the app is doing now that uses so many threads, and eats so much CPU bandwidth: what its structure is.

      « I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups