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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:41:51+00:00 2026-06-07T22:41:51+00:00

I started up 15 Python threads, but the top command says there is only

  • 0

I started up 15 Python threads, but the top command says there is only 1 running:

top -p 4176, then type H

top - 23:46:56 up 46 days,  5:43,  1 user,  load average: 1.16, 1.07, 1.01
Tasks:  16 total,   **1 running**,  15 sleeping,   0 stopped,   0 zombie
Cpu(s): 29.8%us,  0.8%sy,  0.0%ni, 68.4%id,  0.9%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   8085788k total,  7944132k used,   141656k free,   140756k buffers
Swap:  7811068k total,        0k used,  7811068k free,  6902536k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
29771 scraping  20   0  341m 148m 3460 S 16.6  1.9  27:46.68 python
29760 scraping  20   0  341m 148m 3460 S 16.3  1.9  27:45.82 python
29768 scraping  20   0  341m 148m 3460 S  9.0  1.9  28:15.11 python
29767 scraping  20   0  341m 148m 3460 S  8.7  1.9  27:47.97 python
29770 scraping  20   0  341m 148m 3460 R  8.0  1.9  28:05.83 python
29758 scraping  20   0  341m 148m 3460 S  7.7  1.9  28:02.30 python
29761 scraping  20   0  341m 148m 3460 S  7.0  1.9  27:40.68 python
29759 scraping  20   0  341m 148m 3460 S  6.7  1.9  28:21.71 python
29763 scraping  20   0  341m 148m 3460 S  5.7  1.9  28:11.03 python
29769 scraping  20   0  341m 148m 3460 S  5.7  1.9  27:59.36 python
29757 scraping  20   0  341m 148m 3460 S  4.3  1.9  28:01.46 python
29762 scraping  20   0  341m 148m 3460 S  4.0  1.9  28:03.70 python
29765 scraping  20   0  341m 148m 3460 S  4.0  1.9  27:37.34 python
29766 scraping  20   0  341m 148m 3460 S  1.0  1.9  28:05.28 python
29764 scraping  20   0  341m 148m 3460 S  0.3  1.9  27:44.07 python
 4761 scraping  20   0  341m 148m 3460 S  0.0  1.9   0:00.61 python

I want to know why there is only 1 running task rather than 15/16?

Thanks a lot.

  • 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-07T22:41:53+00:00Added an answer on June 7, 2026 at 10:41 pm

    In CPython threads on *nix are implemented using pthread, and they show up like they were separate processes when using top/htop etc, even if they’re not (there’s a big difference between running 15 python processes and running 15 python threads and top output might be misleading here).

    There is only one running due to GIL – in CPython there’s always only one instruction executing at a time in each interpreter.

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

Sidebar

Related Questions

I have only started learning python recently. I would still be considered a beginner.
I have only started learning Python recently. Let me explain what I am trying
I started programming in Python on Monday. I have enjoyed learning it. But I
I just started out with Python and wanted to try out tornado. Running the
In a python script, I started a bunch of threads, each of which pulls
I started studying python a couple of month ago, then I found Jython. Do
I have just started learning python version 3 and trying to create a file
So ive just started learning python on WAMP, ive got the results of a
Hello Guys! I started learning python GUI development. Let's say I have this script:
As I'm a novice, I started learning python by writing simple programs using python

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.