Open two terminals; run your program in one terminal and top in another.

  • If you’re in a graphical environment, you can just start the terminal a second time.
  • If you’re on the text-only console, you can switch between terminals using Ctrl-Alt-F1..F6 (possibly more) or Alt-Left/Right.
  • If you connect via SSH, just open multiple terminal sessions in your SSH client.

(Also, I’d hint to use htop instead of top, but you may need to install it first.)

In case your program is too short-lived to show up on top/htop, you might need to run it using Valgrind.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top