javascript - async.js 多线程
问题描述
我想知道 async.js 是否可以使用多核(线程)。源代码表明没有,但也许我只是误解了这个评论:
异步并行:
* **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about
* parallel execution of code. If your tasks do not use any timers or perform
* any I/O, they will actually be executed in series. Any synchronous setup
* sections for each task will happen one after the other. JavaScript remains
* single-threaded.
有没有办法在多个线程中做到这一点?我有一些处理数据库条目的作业,我需要它们一直在所有内核上运行。
解决方案
推荐阅读
- java - 显示回文素数
- docker - 普罗米修斯从另一台机器上抓取
- html - 孩子如何覆盖父母的不透明度?
- r - R sankeynetwork 强制节点从左到右流动
- objective-c - 多次调用可变参数 Obj-C 方法会导致出现无效参数
- python - 如何在 Pygame 中检查矩形的碰撞和矩形的先前位置?
- java - Java:带有异常处理程序的方法可以没有返回语句吗?
- jquery-ui-autocomplete - jQuery自动完成多个输入,每个输入都有唯一的数组
- mysql - 导入 Laravel 项目的 Mysql 数据库
- html - HTML容器div在其子项下方占用额外空间?