Here is an illustration of how the top command runs on a Linux computer:
https://www.youtube.com/watch?v=idT301bNPIA