ng on read locks (because a read lock doesn’t stop other processes from getting read locks) and any processes waiting for a write lock will sit there and starve. There isn’t a rule anywhere that keeps you from adding more read locks if there is a process waiting for a write lock. You must be careful.</p>
<p>Practically, though, you will probably mostly be using write locks to guarantee exclusive access to a file for a short amount of time while it’s being updated; that is the most common use of locks 