mozilla

Revision 93492 of Concurrency

  • Revision slug: CommonJS/Concurrency
  • Revision title: Concurrency
  • Revision id: 93492
  • Created:
  • Creator: kriszyp
  • Is current revision? No
  • Comment 18 words added

Revision Content

One should probably try to follow the WebWorkers API as far as it makes sense on the server.

However, WebWorkers cannot share state, they can only communicate via messages, so if traditional threads are desired they are not acceptable.

And traditional threads are generally considered deprecated in modern language design. The WebWorkers design was intentional.

Revision Source

<p>One should probably try to follow the <a class="external" href="http://www.whatwg.org/specs/web-workers/current-work/" title="http://www.whatwg.org/specs/web-workers/current-work/">WebWorkers API</a> as far as it makes sense on the server.</p>
<p>However, WebWorkers cannot share state, they can only communicate via messages, so if traditional threads are desired they are not acceptable.</p>
<p>And traditional threads are generally considered deprecated in modern language design. The WebWorkers design was intentional.</p>
Revert to this revision