当计算机重新启动到 Google Gears 工作时会发生什么?
关于工作池,计算机重新启动时会发生什么?工作人员是否继续上次中断的地方?
Regarding the worker pool, what happens when the computer restarts? Does the worker continue where it left off?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了答案。实际上,工作人员在离开页面后立即终止。这必须防止失控进程接管计算机。
因此,一旦计算机重新启动时浏览器关闭,工作线程就会终止。
并且它不会从中断处继续。
提示:必须以原子方式编程,以预期计算是否可以在任何时刻停止。
Found the answer. Actually workers terminate immediately upon navigating away from the page. This must protect from run away processes taking over the computer.
As a result, as soon as the browser closes on a computer restart, the worker will terminate.
And it will not continue where it left off.
Tip: One must program atomically as to expect if computation can stop at any moment in time.