开发者

What happens when the computer restarts to a Google Gears worker?

开发者 https://www.devze.com 2022-12-23 02:05 出处:网络
Regarding the worker po开发者_运维百科ol, what happens when the computer restarts? Does the worker continue where it left off?Found the answer. Actually workers terminate immediately upon navigating a

Regarding the worker po开发者_运维百科ol, what happens when the computer restarts? Does the worker continue where it left off?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号