最大运行web worker html5相同 [英] Maximum running web worker html5 at the same

查看:216
本文介绍了最大运行web worker html5相同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以同时运行最大数量的Web worker?
非常感谢。

解决方案

是,否。使用Web Workers,没有硬性限制,但受限于可用的CPU和内存。

每个工作人员都有相当大的CPU和内存开销如果你剥离了很多工作人员,你可以把机器弄到一定程度。

我会说网络工作者最适合用于长时间运行的100个后台任务毫秒或更多。


Is there any maximum count of web worker that can be run at the same time? Thanks a lot.

解决方案

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.

这篇关于最大运行web worker html5相同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆