SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

HTML5 Web Workers-unleashed

by Program Manager at Google on Sep 23, 2010

  • 8,540 views

 

Statistics

Views

Total Views
8,540
Views on SlideShare
8,522
Embed Views
18

Actions

Likes
11
Downloads
365
Comments
3

6 Embeds 18

http://localhost:8888 8
http://www.linkedin.com 5
http://114.214.55.211:8888 2
http://localhost 1
http://www.e-aula.cl 1
http://www.twylah.com 1

Accessibility

Upload Details

Uploaded via SlideShare as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

13 of 3 previous next Post a comment

  • 4DPlanning Plan Fourdee Great slideshow. thanks!
    4D Planning
    2 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • peterlubbers Peter Lubbers, Program Manager at Google Chris:
    You can add a button to pause the execution by sending a message to the worker

    document.getElementById('startButton').onclick = function () {
    worker.postMessage('pause');
    }

    In the worker you then add a message handler:
    function messageHandler(e) {
    if (e.data == 'pause') {
    //pause the worker
    }
    }

    Note: you can also terminate a worker with
    worker.terminate();
    2 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • ChrisPappas Chris Pappas at National Technical University of Athens i have a question for web workers. Let’s have a worker that calculates prime numbers. When a prime number is calculated the worker post this number to the page and the page show this to the screen. How can i have a button to pause the process? This will not work ... ... ... onmessage=function(e) { if (e.data==’pause’) pauseproccess=true; } ... ... ... while (!pauseproccess) { //calculate prime numbers } 2 years ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

HTML5 Web Workers-unleashed HTML5 Web Workers-unleashed Presentation Transcript