[whatwg] WebWorkers vs. Threads

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