当程序停止响应时,Mac 的指针会变成一个旋转的彩虹轮。有时,稍等片刻就足以解决问题。如果等待不能解决冻结的程序,您可能需要采取其他步骤。以下是在 Mac 上关闭无响应程序的(close unresponsive programs on Mac)方法。
注意:本指南中的说明适用于所有Mac笔记本电脑和电脑型号,以及所有 macOS 版本。
退出(Quit)与强制(Force) 退出(Quit):有什么区别(Difference)?
在这篇文章中,您会经常遇到“退出”和“强制退出”(或“强制退出”)这些术语。一些Mac用户认为这两个术语的含义相同。但是当你“退出”和“强制退出”一个应用程序时,macOS 处理应用程序终止的方式完全不同。
退出应用程序有什么作用?
当您退出应用程序或单击应用程序窗口上的关闭(Close)按钮时,您正在以正常方式关闭它。但是,macOS 可能不会立即关闭应用程序。相反,该应用程序将运行其关闭例程 - 如果有的话。应用程序的关闭例程可能包括完成正在进行的任务以及将未保存的更改或设置存储在磁盘上。
此外,如果关闭会干扰另一个应用程序或导致数据丢失,macOS 可能不会退出应用程序。
您可能需要等待几秒钟或几分钟才能正常关闭应用程序。等待时间取决于后台运行的关闭程序。
当您强制退出(Force Quit)应用程序(App)时会发生什么?
强制(Force)退出应用程序可能会导致数据丢失。您应该始终正常关闭应用程序。这是安全且强烈推荐的,因为它减少了数据丢失的可能性。仅在应用程序冻结或无响应时强制(Force)退出应用程序。
现在,让我们展示处理Mac笔记本电脑或计算机上无响应的应用程序的不同方法。
1.使用键盘快捷键
键盘(Keyboard)快捷键提供了修复冻结的 Mac(fix a frozen Mac)或Mac应用程序无响应的最快方法。
Press Command + Q并等待几秒钟让应用程序正常关闭。如果应用程序仍然在屏幕上,则
强制退出该应用程序。(Force)
Press Shift + Option + Command + Esc立即强制退出(Force Quit)无响应的应用程序。
或者,按Command + Option + Esc。这将打开一个新窗口,您可以在其中强制退出(Force Quit)无响应的应用程序。选择应用程序并选择强制退出(Force Quit)按钮。
2.从苹果菜单
如果您的Mac 键盘不工作(Mac’s keyboard isn’t working),还有另一种方法可以打开“强制退出应用程序”窗口。
选择菜单栏上的Apple标志——查看屏幕的左上角。之后(Afterward),在Apple菜单中选择Force Quit以打开Force Quit窗口。
然后(Afterward),选择应用程序并选择强制退出(Force Quit)按钮。
您可以从Apple(Apple)菜单立即关闭无响应的程序,而无需打开“强制退出应用程序”窗口。
当程序无响应时,打开Apple菜单,按住Shift键,然后选择强制退出 [App Name]。
例如,要关闭Apple Music ,请选择菜单栏上的Apple标志,按住(Apple)Shift键,然后选择强制退出音乐(Force Quit Music)。
3. 从码头
如果应用程序在使用键盘快捷键退出后仍然无响应,请从Dock关闭应用程序。或者如果窗口关闭,但应用程序在后台保持打开状态。Dock中应用程序下方的小点表示该应用程序仍在后台运行。
右键单击或按住 Control 键单击Dock中的应用程序图标,然后选择退出(Quit)。
等待(Wait)一分钟,然后重新打开应用程序。如果应用程序仍然行为不端或无响应,请强制退出该应用程序。按住Option键,右键单击应用程序图标,然后单击强制退出(Force Quit)。
4.从活动监视器(Activity Monitor)强制退出应用程序(Force Quit App)
活动监视器是(Monitor)Windows 设备上任务管理器(Task Manager on Windows devices)的 macOS 版本。除了监控 Mac 的CPU、内存、电源和网络使用情况外,活动监视器(Activity Monitor)还可以强制退出无响应的应用程序和进程。
阅读我们对活动监视器的全面评论,(comprehensive review of the Activity Monitor)以了解有关该实用程序及其功能的更多信息。以下是在活动监视器(Activity Monitor)中退出和强制退出应用程序的方法:
- 启动Finder,选择侧边栏上的 Applications,然后打开 Utilities 文件夹。
- 双击活动监视器。
- 在“CPU”选项卡中,选择无响应的应用程序,然后选择工具栏上的停止(Stop)(x) 图标。
专业提示:在长长的进程列表中找不到无响应的应用程序?在活动监视器的搜索栏中输入(Enter)应用程序名称 - 请参见右上角。
- 选择退出(Select Quit)以关闭冻结的应用程序。
在不关闭活动监视器(Activity Monitor)窗口的情况下重新打开应用程序。如果应用程序再次冻结,请选择强制退出(Force Quit)以终止应用程序和所有相关或辅助进程(dependent or helper processes)。
5.使用终端
Terminal是Mac操作系统中的多功能实用程序。您可以使用该工具打开文件/文件夹、更新您的 Mac(update your Mac)、终止无响应的应用程序(terminate unresponsive apps)等。
以下是如何使用终端(Terminal)关闭冻结的应用程序:
- 转到Finder > Applications > Utilities并双击Terminal。
或者,打开Spotlight 搜索(Spotlight Search)(Command + Space),在搜索栏中输入终端,然后选择终端(Terminal)。
下一步是找到无响应应用程序的进程标识符(Process Identifier)(或进程 ID(Process ID)或PID)。PID是分配给Mac计算机上活动或正在运行的应用程序的唯一标识符(想想:指纹)。没有两个应用程序具有相同的进程 ID。
- (Type)在终端控制台中(Terminal)键入top并按键盘上的Return键。
这将在您的Mac(Mac)上打开一个正在运行的程序和进程的表。检查“COMMAND”和“PID”列并记下无响应程序的名称和进程标识符。
- 按(Press)键盘上的 q 关闭表格。
- 然后(Afterward),输入 kill ,按空格键(Spacebar),输入应用程序的PID,然后按Return。该命令应如下所示: kill PID,其中PID是应用程序的进程标识符。
这将立即终止您Mac(Mac)上的应用程序及其进程。
不得已:关闭(Close)并重新打开所有应用程序(Reopen All Applications)
(Log)如果应用程序仍然间歇性冻结或所有打开的应用程序都没有响应,请退出您的 macOS 帐户
。
Press Shift + Command + Q,在框中选中重新登录时重新打开(Reopen)窗口,然后在弹出窗口
中选择注销。(Log Out)
登录您的Mac并检查应用程序在重新打开时是否运行顺畅。如果应用程序问题仍然存在,请重新启动您的Mac计算机。(Mac)一些第三方清理和优化工具(third-party cleaning and optimization tools)还可以帮助关闭Mac上无响应的程序。
5 Ways to Close an Unresponsive Program on Mac
Your Mac’s poіnter changеs to a spinning rainbow wheel when a program stops responding. Sometimes, waiting a bit iѕ enoυgh to fix thе problem. If waiting doesn’t resolve a frozen program, yоu may need to take additional steps. Here’s how to close unresponsive programs on Mac.
Note: The instructions in this guide apply to all Mac notebooks and computer models, as well as all macOS versions.
Quit vs. Force Quit: What’s the Difference?
You’ll come across the terms “Quit” and “Force-Quit” (or “Force Quit”) a lot in this post. Some Mac users assume both terms to mean the same thing. But when you “quit” and “force quit” an app, macOS handles the termination of the app quite differently.
What Does Quitting an App Do?
When you quit an app or click the Close button on the app window, you’re closing it the normal way. However, macOS may not close the app immediately. Instead, the app is left to run its shutdown routines—if it has any. An app’s shutdown routine may include completing ongoing tasks and storing unsaved changes or settings on the disk.
Additionally, macOS may not quit an app if its closure will interfere with another app or lead to data loss.
You may need to wait some seconds or a few minutes for an app to close normally. The waiting period will depend on the shutdown routines running in the background.
What Happens When You Force Quit an App?
Force Quitting an app may result in data loss. You should always close an app normally. It’s safe and highly recommended as it reduces the possibility of data loss. Force quit an app only when it’s freezing or unresponsive.
Now, let’s show different ways to deal with an unresponsive application on your Mac notebook or computer.
1. Use Keyboard Shortcuts
Keyboard shortcuts offer the fastest way to fix a frozen Mac or Mac applications when they become unresponsive.
Press Command + Q on your keyboard and wait for a few seconds for the app to close normally. Force Quit the app if it remains on the screen.
Press Shift + Option + Command + Esc to immediately Force Quit the unresponsive app.
Alternatively, press Command + Option + Esc. That’ll open a new window where you can Force Quit unresponsive applications. Select the app and select the Force Quit button.
2. From the Apple Menu
There’s an alternative way to open the “Force Quit Applications” window if your Mac’s keyboard isn’t working.
Select the Apple logo on the menu bar—see the upper-left corner of your screen. Afterward, select Force Quit in the Apple menu to open the Force Quit window.
Afterward, select the app and select the Force Quit button.
You can instantly close an unresponsive program from the Apple menu without opening the “Force Quit Applications” window.
When the program becomes unresponsive, open the Apple menu, hold the Shift key, and select Force Quit [App Name].
To close Apple Music, for instance, select the Apple logo on the menu bar, hold the Shift key, and select Force Quit Music.
3. From the Dock
Close the app from the Dock if it remains unresponsive after quitting it using the keyboard shortcut. Or if the window closes, but the app stays open in the background. A small dot below an app in the Dock means the app is still running in the background.
Right-click or Control-click the app’s icon in the Dock and select Quit.
Wait for a minute and reopen the app. Force-quit the app if it’s still misbehaving or unresponsive. Press and hold the Option key, right-click the app icon, and click Force Quit.
4. Force Quit App from the Activity Monitor
Activity Monitor is the macOS version of Task Manager on Windows devices. In addition to monitoring your Mac’s CPU, memory, power, and network usage, Activity Monitor can force-quit unresponsive applications and processes.
Read our comprehensive review of the Activity Monitor to learn more about the utility and its features. Here’s how to quit and force-quit an app in the Activity Monitor:
- Launch Finder, select the Applications on the sidebar, and open the Utilities folder.
- Double-click Activity Monitor.
- In the “CPU” tab, select the unresponsive app, and select the Stop (x) icon on the toolbar.
Pro Tip: Can’t find the unresponsive app in the long list of processes? Enter the app name in the Activity Monitor’s search bar—see the top-right corner.
- Select Quit to close the frozen application.
Reopen the app without closing the Activity Monitor window. If the app freezes again, select Force Quit to kill the app and all dependent or helper processes.
5. Use Terminal
Terminal is a multipurpose utility in the Mac operating system. You can use the tool to open files/folders, update your Mac, terminate unresponsive apps, et cetera.
Here’s how to use Terminal to close frozen apps:
- Go to Finder > Applications > Utilities and double-click Terminal.
Alternatively, open the Spotlight Search (Command + Space), type terminal in the search bar, and select Terminal.
The next step is to locate the Process Identifier (or Process ID or PID) of the unresponsive app. PID is a unique identifier (think: fingerprint) assigned to active or running applications on your Mac computer. No two apps have the same process ID.
- Type top in the Terminal console and press Return on the keyboard.
That will open a table of running programs and processes on your Mac. Check the “COMMAND” and “PID” columns and note the name and process identifier of the unresponsive program.
- Press q on your keyboard to close the table.
- Afterward, type kill, press the Spacebar, type the app’s PID, and press Return. The command should look like this: kill PID, where PID is the app’s process identifier.
That’ll immediately terminate the app and its processes on your Mac.
Last Resort: Close and Reopen All Applications
Log out of your macOS account if the app still freezes intermittently or if all open apps are unresponsive.
Press Shift + Command + Q, check the Reopen windows when logging back in the box, and select Log Out on the pop-up.
Sign in to your Mac and check if the app(s) run smoothly when reopened. Restart your Mac computer if the app(s) issue persists. Some third-party cleaning and optimization tools can also help close unresponsive programs on your Mac.