Parent Directory
|
Revision Log
make
| 1 | wakaba | 1.59 | <!DOCTYPE html><html lang=en-US-x-hixie><meta charset=ascii><title>Web Workers</title><link href=/style/specification rel=stylesheet><link href=/images/icon rel=icon><body class=draft> |
| 2 | <div class=head> | ||
| 3 | <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p> | ||
| 4 | <h1>Web Workers</h1> | ||
| 5 | wakaba | 1.65 | <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 16 May 2009</h2> |
| 6 | wakaba | 1.59 | <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p> |
| 7 | <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p> | ||
| 8 | <dl><dt>This version:</dt> | ||
| 9 | <dd><a href=http://www.whatwg.org/specs/web-workers/current-work/>http://whatwg.org/ww</a></dd> | ||
| 10 | <dt>Version history:</dt> | ||
| 11 | <dd>Twitter messages (non-editorial changes only): <a href=http://twitter.com/WHATWG>http://twitter.com/WHATWG</a></dd> | ||
| 12 | <dd>Commit-Watchers mailing list: <a href=http://lists.whatwg.org/listinfo.cgi/commit-watchers-whatwg.org>http://lists.whatwg.org/listinfo.cgi/commit-watchers-whatwg.org</a></dd> | ||
| 13 | <dd>Interactive Web interface: <a href=http://html5.org/tools/web-workers-tracker>http://html5.org/tools/web-workers-tracker</a></dd> | ||
| 14 | <dd>Subversion interface: <a href=http://svn.whatwg.org/webworkers/>http://svn.whatwg.org/webworkers/</a></dd> | ||
| 15 | <dt>Issues:</dt> | ||
| 16 | <dd>To send feedback: <a href=http://www.whatwg.org/mailing-list>[email protected]</a></dd> | ||
| 17 | <dd>To view and vote on feedback: <a href=http://www.whatwg.org/issues/>http://www.whatwg.org/issues/</a></dd> | ||
| 18 | <dt>Editor:</dt> | ||
| 19 | <dd>Ian Hickson, Google, [email protected]</dd> | ||
| 20 | </dl><p class=copyright>© Copyright 2004-2008 Apple Computer, Inc., | ||
| 21 | Mozilla Foundation, and Opera Software ASA.</p> | ||
| 22 | <p class=copyright>You are granted a license to use, reproduce | ||
| 23 | and create derivative works of this document.</p> | ||
| 24 | </div> | ||
| 25 | |||
| 26 | <hr><h2 class="no-num no-toc" id=abstract>Abstract</h2> | ||
| 27 | |||
| 28 | <p>This specification defines an API that allows Web application | ||
| 29 | authors to spawn background workers running scripts in parallel to | ||
| 30 | their main page. This allows for thread-like operation with | ||
| 31 | message-passing as the coordination mechanism.</p> | ||
| 32 | |||
| 33 | |||
| 34 | <h2 class="no-num no-toc" id=status>Status of this document</h2> | ||
| 35 | |||
| 36 | <p><strong>This is a work in progress!</strong> This document is | ||
| 37 | changing on a daily if not hourly basis in response to comments and | ||
| 38 | as a general part of its development process. Comments are very | ||
| 39 | welcome, please send them to <a href=mailto:[email protected]>[email protected]</a>. Thank | ||
| 40 | you.</p> | ||
| 41 | |||
| 42 | <p>The current focus is in developing a first draft proposal.</p> | ||
| 43 | |||
| 44 | <p>Implementors should be aware that this specification is not | ||
| 45 | stable. <strong>Implementors who are not taking part in the | ||
| 46 | discussions are likely to find the specification changing out from | ||
| 47 | under them in incompatible ways.</strong> Vendors interested in | ||
| 48 | implementing this specification before it eventually reaches the | ||
| 49 | call for implementations should join the <a href=/mailing-list>WHATWG mailing list</a> and take part in the | ||
| 50 | discussions.</p> | ||
| 51 | |||
| 52 | <p>This specification is also being produced by the <a href=http://www.w3.org/2008/webapps/>W3C Web Apps WG</a>. The two | ||
| 53 | specifications are identical from the table of contents onwards.</p> | ||
| 54 | |||
| 55 | <h2 class="no-num no-toc" id=contents>Table of contents</h2> | ||
| 56 | |||
| 57 | <!--begin-toc--> | ||
| 58 | <ol class=toc> | ||
| 59 | <li><a href=#introduction><span class=secno>1 </span>Introduction</a> | ||
| 60 | <ol> | ||
| 61 | <li><a href=#scope><span class=secno>1.1 </span>Scope</a></li> | ||
| 62 | <li><a href=#tutorial><span class=secno>1.2 </span>Tutorial</a> | ||
| 63 | <ol> | ||
| 64 | <li><a href=#a-background-number-crunching-worker><span class=secno>1.2.1 </span>A background number-crunching worker</a></li> | ||
| 65 | <li><a href=#a-worker-for-updating-a-client-side-database><span class=secno>1.2.2 </span>A worker for updating a client-side database</a></li> | ||
| 66 | <li><a href=#worker-used-for-background-i/o><span class=secno>1.2.3 </span>Worker used for background I/O</a></li> | ||
| 67 | <li><a href=#shared-workers><span class=secno>1.2.4 </span>Shared workers</a></li> | ||
| 68 | <li><a href=#delegation><span class=secno>1.2.5 </span>Delegation</a></li> | ||
| 69 | <li><a href=#providing-libraries><span class=secno>1.2.6 </span>Providing libraries</a></ol></ol></li> | ||
| 70 | <li><a href=#conformance-requirements><span class=secno>2 </span>Conformance requirements</a> | ||
| 71 | <ol> | ||
| 72 |