Parallel.js - JavaScript多核编程框架
                 jopen
                 13年前
            
                    Parallel.js 是一个多核处理的微型 JavaScript 库。利用越来越成熟的 WebWorker API 实现。
Parallel.js 解决了在 JavaScript 通过高级 API 进行多核处理编程。运行于浏览器。
示例代码:
// Need to do it like this to avoid premature browser compilation of Math.sqrt  var sqrt = function (n) { return Math.sqrt(n); };     // Spawn a remote RemoteReference  var r = Parallel.spawn(sqrt, 100);     // Fetch the remote reference and log the result when it's complete  r.fetch(function (result) {  console.log(result);  });