XmlSchemaSet Thread Safety
Posted by: XmlTeams WebLog,
on 27 Apr 2009 |
View original | Bookmarked: 0 time(s)
Here's a good word of warning: even if an object "feels" read-only because you're not calling code to modify it, if it's not documented as safe for use from multiple threads, then you shouldn't risk it.
As an example, lets look at XmlSchema and XmlSchemaSet. Initializing these has a cost associated with it, and so it's nice to be able to build them once and then reuse them. But you have to be very careful in doing this. The docs say that all instance methods are not safe for multiple thread usage,...