The Activity Monitor on a Mac helps you to quit a process, even if it is non-responsive or stuck in a loop.
If you attempt to quit a process that was started by another user, or a system process, you may need to authenticate as an administrator.
If an app becomes unresponsive, you can force quit the app (you may lose unsaved changes).
Sometimes a system process may not have an active window, because it’s a background task.