W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2008

[whatwg] WebWorkers vs. Threads

From: Aaron Boodman <aa@google.com>
Date: Tue, 12 Aug 2008 10:34:59 -0700
Message-ID: <278fd46c0808121034y39412ef1keec6199b6ef6afad@mail.gmail.com>
On Tue, Aug 12, 2008 at 2:51 AM, Shannon <shannon at arc.net.au> wrote:
> I thought Lua had an implementation of automated locking to use as a
> reference but since it doesn't I have nothing more to offer on the subject.
> Without knowing the internals of existing JS implementations I have no idea
> what would be involved to provide automated locking and whether it is
> impossible or just difficult.

It seems like the best you could do is use a system-wide lock. Python
does this I believe (http://docs.python.org/api/threads.html). It
helps for IO (the lock can be released during synchronous IO), but it
doesn't allow you to make use of multicore CPUs.

- a
Received on Tuesday, 12 August 2008 10:34:59 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:04 UTC