* Similar to internal locks, write locks block all other operations while read locks allow parallel access.
In the following module, a write lock is declared to avoid multiple clients reading or writing to a config file at the same time:
<pre class="brush:xquery">