A lock file is used to keep muti-user databases from being changed in the same place by two people at the same time resulting in data corruption.