Upload
ahmed-gaber
View
45
Download
2
Embed Size (px)
Citation preview
Parallel Computing In JavaScript
Agenda
1.Parallel Computing ( what, how and why )2.JavaScript on PC3.WebWorkers4.Nodejs Clustering
JavaScript
console.log(1);setTimeout(function(){
console.log(2);}, 0);console.log(3);
Heap Stack
EventLoop
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