6

I've recently installed and started using htop instead of the System Monitor included in default Ubuntu installations and I noticed something weird. I arranged htop to display the processes by memory usage and noticed I have 9 instances of GNOME-Shell running, all with different PID's.

Is this normal for GNOME? I never noticed it before on other Ubuntu installs, but to be fair I've never looked either.

4

They are probably threads. Are they consecutive PIDs, and show up in branches under one gnome-shell process when you run ps fx|grep gnome-shell?

This is quite common when a process fork/execs or uses multiple threads.

3
  • It looks like most of them are consecutive PID's, there are a couple of them that aren't, one sits about a thousand above the others, and the last one appears and disappears, haha. Working as usual then? – AlbertEngelB Mar 20 '13 at 22:51
  • If these are threads, why do they a different process id (pid)? – AlikElzin-kilaka Nov 8 '20 at 18:15
  • @AlikElzin-kilaka well because they are forked/execed child processes, and not pure threads in a single process. – dobey Nov 17 '20 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.