A Methodology for Fine- Grained Parallelism in JavaScript ...
A Methodology for Fine- Grained Parallelism in JavaScript ...
A Methodology for Fine- Grained Parallelism in JavaScript ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
n-body simulation<br />
function CalculateForces(pos_rd, soften<strong>in</strong>gSquared) {<br />
this.m_pos_rd = pos_rd;<br />
this.m_soften<strong>in</strong>gSquared = soften<strong>in</strong>gSquared;<br />
this.work = function () {<br />
var <strong>for</strong>ce = [0.0,0.0,0.0];<br />
var i = this.pop()*4;<br />
var N = this.pop()*4;<br />
<strong>for</strong> (var j=0; j