我在尝试对1000万个值的数组进行排序。从发现新技术Microsoft - Napa.js允许使用多线程与Node.js.Node.js与Napajs并行执行任务
在那里,我们使用下面的代码:
const napa = require('napajs')
const zone = napa.zone.create('zone', { workers: 4 });
zone.execute((...args) => {
// here I can take anything I want to execute in a native thread
// but it is also possible to implement shared memory for all
// threads, but I can't find out how
}, [args])
帮助我明白了,什么分配。什么是处理程序以及如何使用TransferContext如果它需要执行此任务。
Ant至少如何使用所有这些知识为我的线程创建共享内存?
谢谢你的回答!像你的[路线图](https://github.com/Microsoft/napajs/wiki/roadmap)。期待这些事情都完成了 –