Parallel Computing In JavaScript
Agenda
1.Parallel Computing ( what, how and why )
2.JavaScript on PC
3.WebWorkers
4.Nodejs Clustering
JavaScript
console.log(1);
setTimeout(function(){
console.log(2);
}, 0);
console.log(3);
Heap Stack
Event
Loop
Message Queue
WebApi / OS
for(var i =0 ; i <4; i++)
{
setTimeout(function(){
console.log(i);
}, 0);
}
HOW IT WORKS
CAN
CAN NOT
WHY
DEMO
CAN
CAN NOT

Parallel Computing in JS