Paul Clapham wrote:There aren't going to be any problems if several users read a file at the same time. They all get the same data. It doesn't matter how many people try to read it at the same time.
As for modifying a shared file from a web application, just don't do that. If you do, the problems to be solved are much greater than whether the parser is thread-safe.
Yeap...but, for example, if the file will not be supposed to be modified by many users at the same time (let it be a config file, modified just by one person, admin or anybody else via CMS)..... Is my own syncronization gonna be the best variant? Actually, i don't see other posibilities, besides let the file without any write syncronization, or do it by myself. But, because there will be an extremelly small chance that two write requests will go together, i guess the best variant is to do the syncronization, or what?
What can you say about this.