当计算机重新启动到 Google Gears 工作时会发生什么?

发布于 2024-08-24 17:54:05 字数 43 浏览 1 评论 0原文

关于工作池,计算机重新启动时会发生什么?工作人员是否继续上次中断的地方?

Regarding the worker pool, what happens when the computer restarts? Does the worker continue where it left off?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吐个泡泡 2024-08-31 17:54:05

找到了答案。实际上,工作人员在离开页面后立即终止。这必须防止失控进程接管计算机。

因此,一旦计算机重新启动时浏览器关闭,工作线程就会终止。

并且它不会从中断处继续。

提示:必须以原子方式编程,以预期计算是否可以在任何时刻停止。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文