Are there drawbacks to Snow Leopard's new “sudden termination” mechanism?

旧巷老猫 提交于 2019-11-30 23:38:24

There have been a few mentions in Apple mailing lists, such as: http://lists.apple.com/archives/cocoa-dev/2009/Sep/msg00113.html

Certainly you can use it in an app with user documents. As you say, the app can signal when it is or is not ready to be nuked, so it can just say "please don't kill me" if there are any unsaved documents. Of course you could also consider some kind of auto-saving scheme, which would make your app less vulnerable to crashes as well as more friendly to sudden termination.

Internally to Apple, the goal was that almost all processes should be suddenly terminable almost all of the time. It is something that all processes can and should use. Use case: everything!

Sudden termination is behind the "faster to shutdown" section on Apple's Snow Leopard page.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!