parallel computing into javascript

21

Upload: renato-augusto-gama-dos-santos

Post on 09-Apr-2017

147 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Parallel Computing into Javascript
Page 2: Parallel Computing into Javascript
Page 3: Parallel Computing into Javascript

What is Parallel ?“If one computer (processor) can resolve a problem in N seconds, could N computers

(processors) resolve the same problem in 1 sec?”

Page 4: Parallel Computing into Javascript

Parallel Computing- Concurrence;

- Scheduling;

- Communication and Sync.

Page 5: Parallel Computing into Javascript

Potential Parallel

Page 6: Parallel Computing into Javascript

Parallel

Page 7: Parallel Computing into Javascript

Until yesterday...

Page 8: Parallel Computing into Javascript
Page 9: Parallel Computing into Javascript

Now...- Web Workers

- Async Functions

- Shared Memory

Page 10: Parallel Computing into Javascript
Page 11: Parallel Computing into Javascript

Web Workers

Page 12: Parallel Computing into Javascript

Definition- Web Workers provide a simple means for web content to run scripts in

background threads. The worker thread can perform tasks without interfering

with the user interface. In addition, they can perform I/O using XMLHttpRequest

(although the responseXML and channel attributes are always null). Once

created, a worker can send messages to the JavaScript code that created it by

posting messages to an event handler specified by that code (and vice versa.)

Page 13: Parallel Computing into Javascript

Comparative

Page 14: Parallel Computing into Javascript

Async/Await

Page 15: Parallel Computing into Javascript

Flow

Page 16: Parallel Computing into Javascript

Now x Soon

Page 17: Parallel Computing into Javascript

Support

Page 18: Parallel Computing into Javascript

Future...

Page 19: Parallel Computing into Javascript

SIMD.js

Page 20: Parallel Computing into Javascript

Shared Memory (Multi Thread)

Page 21: Parallel Computing into Javascript