W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Question: Building nodes in concurrent threads

From: Mark Frost <mfrost@hemscott.co.uk>
Date: Wed, 3 Oct 2001 14:46:34 +0100
Message-ID: <836E5EE0FD15D411844E00508B6C138C035A3459@exchange.hemscott.co.uk>
To: "'www-dom@w3.org'" <www-dom@w3.org>
I wish to build a large (SQL intensive) Document in concurrent threads.

My idea is to create a Document and attach the first level child nodes.

I will then create 1 thread per child node and pass each child node to the
routines that will build them.

I then wait for all threads to complete.

Is this technique thread safe? My assumption is that it should be because
each thread is appending children onto its "own" node.

If it is not thread safe - can I easily make it so.

Many thanks


This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient, you should not copy, retransmit or
use the e-mail and/or files transmitted with it  and should not disclose
their contents. In such a case, please notify netwebmaster@hemscott.co.uk
and delete the message from your own system. Any opinions expressed in this
e-mail and/or files transmitted with it that do not relate to the official
business of this company are those solely of the author and should not be
interpreted as being endorsed by this company.
Received on Wednesday, 3 October 2001 09:47:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC