Try to set a write lock on a write lock on consecutive pieces of a file for many times (Denied)
Slave0: Create a file, write data, close it Slave0: Open the file for read\write Slave1: Open the file for read\write In cycle: Slave0: Set a write lock on 10 bytes In cycle: Slave0: Read one byte of data In cycle: Slave1: Try to set a write lock on the same peace of data( Denied) Slave1: Wait 0.0001sec Slave1: Set a write lock on next 10 bytes In cycle: Slave1: Read one byte of data from these (next) 10 bytes In cycle: Slave0: Try to set a write lock on the same peace of data( Denied) Slave0: Wait 0.0001sec |