Maximum running web worker html5 at the same

纵饮孤独 提交于 2019-11-30 14:32:29

Yes and no. With Web Workers, there's no hard limit but you are limited by the available CPU and memory.

There's a rather large amount of CPU and memory overhead that comes with each worker so you can bring the machine to a grind if you spin off a lot of workers.

I'd say Web Workers are best used for "long running" background tasks of 100 milliseconds or more.

The w3c doesn't mention any limitation (see http://www.w3.org/TR/workers/)

But it depends on what you are wanting to do, the limit will be the computer on which you will run the app (be kind with your users).

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