How to deal with concurrent access to a file
Code
${lock("myLock", 5000)}
<!-- my freemarker code / my webservices to call -->
<!-- writing in a file, updating a custom list -->
${unlock("myLock")}
Code
${lock("myLock", 5000)}
<!-- my freemarker code / my webservices to call -->
<!-- writing in a file, updating a custom list -->
${unlock("myLock")}
Please give details of the problem