A Methodology for Fine- Grained Parallelism in JavaScript ...
A Methodology for Fine- Grained Parallelism in JavaScript ...
A Methodology for Fine- Grained Parallelism in JavaScript ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Kernel Offload<br />
<strong>JavaScript</strong><br />
SKIR<br />
Sluice<br />
Process boundary<br />
1) Compile K2 to SKIR code<br />
K1<br />
shared<br />
memory<br />
<strong>in</strong>put stream<br />
2) Transfer SKIR code<br />
3) Allocate streams<br />
4) Allocate & copy state<br />
5) Call K2<br />
RPC<br />
state<br />
K2<br />
(offloaded)<br />
shared<br />
memory<br />
state copy<br />
K2<br />
SKIR<br />
6) JIT compile K2<br />
shared<br />
memory<br />
output stream<br />
7) Execute K2<br />
K3<br />
Sluice<br />
8) Copy state back to JS