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 8435521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:56:17+00:00 2026-06-10T06:56:17+00:00

I have source code and multithreading is enabled in that code. I checked with

  • 0

I have source code and multithreading is enabled in that code. I checked with ps -eLf command its showing number of threads list, but i think load its not distributed in all the threads.so i want to know how we can check the load is distributed in all the threads or not.

According to me complete load is going to single thread.

Actually i want to improve the performance of my code.

I am using RHEL5.4 linux OS. Programming Language is C.

if anyone knows, please let me know…..

Thanks

  • 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. Editorial Team
    Editorial Team
    2026-06-10T06:56:19+00:00Added an answer on June 10, 2026 at 6:56 am

    Run this:

    ps -p PID_OF_YOUR_PROCESS -L -o pid,tid,pcpu,state,nlwp,args
    

    You will see something like this as output:

      PID   TID %CPU S NLWP COMMAND
     2305  2305  3.5 S    5 /usr/bin/cinnamon
     2305  2325  0.0 S    5 /usr/bin/cinnamon
     2305  2326  0.0 S    5 /usr/bin/cinnamon
     2305  2327  0.0 S    5 /usr/bin/cinnamon
     2305  2721  0.0 S    5 /usr/bin/cinnamon
    

    TID is the thread id. You can see the cpu percentage of each thread.

    Hope that answers your questions.

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

Sidebar

Related Questions

I have a DLL that I don't have source code to, but I want
I have a source code that is needed to be converted by creating classes,
I have this source code from 2001 that I would like to compile. It
I have some source code that was compiled on Windows. I am converting it
I have source code checked out on my Linux machine. I connect to it
I am developing application for .Epub extension file reader.I have source code available. But
I have an executable that defaults to 32-bit. It doesn't have source code and
I have source code for a project that inspects a game's memory values. The
I have source code that was not written by me, and I cannot contact
It have source code that contains sections like this: <pre> text </pre> long long

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.