[Home] [By Thread] [By Date] [Recent Entries]

  • From: David Brownell <david-b@p...>
  • To: Laura Hatcher <lhatcher@a...>, xml-dev <xml-dev@l...>
  • Date: Thu, 20 Sep 2001 11:57:50 -0700

> Does anyone know if Xerces for Java can handle multiple requests to
> parse at the same time.  Let's say for example that everytime an XML
> file is received from a remote location that it spawns a new thread that
> will parse the XML data and do with it what it will.

No SAX parser is expected to handle concurrency like that.
One thread at a time per object, that's the rule.

You can maintain a pool of parsers, and have each thread grab
an unused parser from the pool, if it costs too much to create
a parser.

 - Dave



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member