473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Why htop shows multiple processes while top shows only one

!NoItAll
297 100+
I have an application (written by a contractor for me) that shows as a single process when I run top, but when I run htop it shows from 19 (under light load) up to 76 processes when under heavy load. I am assuming they are processes because each one, under htop, shows a unique PID. Under top there is only one PID.
Many of the "processes" being shown by htop show 0.0 in the CPU% column - so I am wondering if this is highlighting a resource leak.
Could someone clue me in on what I am actually seeing here?
Here's a pix...


...there are actually dozens more below what this picture shows...

Thanks!
Feb 23 '17 #1
1 4735
Luuk
1,047 Expert 1GB
Is are kernel thread.

From 'man htop':
Expand|Select|Wrap|Line Numbers
  1. K    Hide kernel threads: prevent the threads belonging the kernel to be displayed in the process list. (This is a toggle key.)
  2.  
  3. H    Hide user threads: on systems that represent them differently than ordinary processes (such as recent NPTL-based systems), this can hide threads
  4.             from userspace processes in the process list. (This is a toggle key.)
  5.  
so, pressing 'K' switches this off, (or on)...

This difference is also visibla with ps.
Look at difference if this:
ps -ef | grep vstreamer
and
ps -eLf | grep vstreamer
Aug 19 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: SomeGei | last post by:
i have a php script that needs to execute an external php script (call this script 2) when the user clicks a link, however I don't want the user to have to wait until script 2 finishes executing...
1
by: Smegly | last post by:
Hi, I currently trying to implement a simulation banking system as part of an assigment. I must stress i do not want line by line code to complete this, what i'm really after is a guide to how i...
5
by: Jeremy | last post by:
I have a core VB service that monitors a database, and based on data in the records will execute code to send email notifications. Problem: I don't want my main program code to halt and wait for...
2
by: Brett | last post by:
What are the advantages/disadvantages of using one process with multiple threads or doing the same task with multiple processes, each having one thread? I see using multiple threads under one...
4
by: colson | last post by:
I know how to create a new process using System.Diagnostics.Process and wait for the process to end using WaitForExit(). How do I wait for multiple processes? Is there an equivalent to...
8
by: mandydhaliwal | last post by:
Hi all, I am porting a win32 c++ program on Linux which first reads a list of processes and their paths from a file.Then this program should launch all of thesese processes. I tried to...
1
by: abhijit patra | last post by:
How the codes in the DLLs are shared by multiple processes?
6
by: Tim Arnold | last post by:
I have a bunch of processes to run and each one needs its own working directory. I'd also like to know when all of the processes are finished. (1) First thought was threads, until I saw that...
0
by: Cameron Simpson | last post by:
On 24Sep2008 18:27, Tim Arnold <a_jtim@bellsouth.netwrote: | I have a bunch of processes to run and each one needs its own working | directory. I'd also like to know when all of the processes are...
3
by: Tim Arnold | last post by:
I have a bunch of processes to run and each one needs its own working directory. I'd also like to know when all of the processes are finished. (1) First thought was threads, until I saw that...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.