Ending a task stops a running process from the task manager (called Force Quit in Activity Monitor on a Mac). It is the fix for high CPU usage caused by a high-usage or unresponsive task. Unsaved work in that app is lost, and system processes should not be ended.