XmlDocument's LoadXml and concurrency

S

Sashas

Hi All

I'm writing a web services that accesses an xml config file. Because
of the possibility of multiple accesses to the config file (through
multiple instances of the web service), I have a concern. Can multiple
instances of my web service lead to a race condition when accessing
this xml file? Does the LoadXml function access the xml files without
locking them?

Thanks,

Alex
 
J

John Saunders [MVP]

Sashas said:
Hi All

I'm writing a web services that accesses an xml config file. Because
of the possibility of multiple accesses to the config file (through
multiple instances of the web service), I have a concern. Can multiple
instances of my web service lead to a race condition when accessing
this xml file? Does the LoadXml function access the xml files without
locking them?

LoadXml only reads the file. What sort of race condition could this possibly
cause?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top