'htop' process and threads cpu usage?

9,640

thread1 and thread2 are child threads spawned by the main process but the main process can still do work.

In your output of htop bin/process (and all child threads) are using 100% of cpu. 70% of the cpu is used by thread1 and 0% by thread2, the remaining (difference) is the main process that spawn/manages these child threads.

Share:
9,640

Related videos on Youtube

TheMeaningfulEngineer
Author by

TheMeaningfulEngineer

I like to think of myself as a Hardware/Software guy who will gladly discuss referential transparency during a code review and the next moment take a circular saw to build a casing for a self made power supply. My main interest can be summarized into Linux related software development, low power electronics and general DIY projects.

Updated on September 18, 2022

Comments

  • TheMeaningfulEngineer
    TheMeaningfulEngineer over 1 year

    I'm observing a multi threaded process in htop in tree view. If I were to strip it just to the problematic part, it looks somewhat like this:

                      CPU%
     bin/process       100
      `- thread1        70
      `- thread2         0
    

    The process all together is using 100% and one of the threads is using 70%. Where do I place the other 30%?

  • imagineerThis
    imagineerThis about 8 years
    completely irrelevant to question