[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multithreading, again and again

From: Stefan Monnier
Subject: Re: Multithreading, again and again
Date: Mon, 17 Oct 2011 21:18:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

>> I don't think there is such a consensus, but better support for
>> concurrency is something I consider important.  It is currently much too
>> difficult to implement "asynchronous article fetch" and things like that.

> "Asynchronous article fetch" could be implemented with a simpler approach
> to run code in a "sandbox" similarly to HTML5 "workers" that run
> computationally expensive scripts in the background independently of any
> user interface scripts that allows for long-running scripts to be
> executed without yielding to keep the application responsive.  More at:
> http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html

I must say my HTML/Javascript is between rusty and nonexistant, but
I can't see how they avoid global communication.  My best guess is that
they do the equivalent of a `fork' and then use communication via
messages (implemented over pipes or equivalent with automatic

We could provide a `fork' primitive, indeed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]