473,407 Members | 2,320 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,407 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 4736
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.