W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] Calling Workers from Workers

From: ATSUSHI TAKAYAMA <taka.atsushi@googlemail.com>
Date: Sun, 20 Dec 2009 16:35:44 -0500
Message-ID: <9cef076f0912201335s3fcb495bs8cc1da3a9963911e@mail.gmail.com>
Hi all,

I'm wondering if calling (postMessage-ing to) Web Workers from a
worker thread is possible.

The use case I have in mind is to do a recursive calculation. So we're
not only able to do this;

- Main Thread (waits for results from workers)
-- Worker 1
-- Worker 2
-- Worker 3

but also able to do this kind of thing;

- Main Thread (waits for results from it's own workers)
-- Worker 1 (waits for results from it's own workers)
--- Worker 1-1
--- Worker 1-2
--- Worker 1-3 (waits for results from it's own workers)
---- Worker 1-3-1
---- Worker 1-3-2
---- Worker 1-3-3
-- Worker 2 (waits for results from it's own workers)
--- Worker 2-1
--- Worker 2-2
--- Worker 2-3
-- Worker 3 (no more recursion)

Thanks,
Atsushi TAKAYAMA
Received on Sunday, 20 December 2009 13:35:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:54 UTC