W3C home > Mailing lists > Public > public-html@w3.org > July 2008

Re: Workers

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sun, 20 Jul 2008 16:31:02 -0700
Message-ID: <4883CAB6.6020005@terrainformatica.com>
To: James Graham <jg307@cam.ac.uk>
CC: public-html@w3.org

James Graham wrote:
> Andrew Fedoniouk wrote:
>> I think that term 'thread' shall be used in the specification instead of
>> "completely separate and parallel execution environment". Thread is 
>> well established and universally understood term. Anyway that 
>> specification is targeted on developers. I doubt that any 
>> non-technical person will even try to read that.
> I was under the impression that the term "thread" generally implied 
> shared state whereas workers are shared nothing. Unless I am mistaken I 
> think that referring to workers as "threads" would be bad because it 
> will give people the idea that the workers api needs to solve all the 
> problems that come with shared state.

Technically there are shared states/objects. E.g. multiple Worker 
threads share the same communication pipe that is accessible through 
MessagePort endpoints. Collection of databases / storages is also 
shareable with the owner in terms that set of available DB/Storages for 
the Worker is the same as for the owner that created it.

Another example is state of http client: it has limited set of 
simultaneous connections available. Thus http client is a common 
resource/state for all Workers.

Andrew Fedoniouk.

Received on Sunday, 20 July 2008 23:31:48 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:34 UTC