A locked file can only be accessed by the single user or process that holds the lock. This exclusive access prevents other users from reading, modifying, or accessing the file until the lock is released. Locking is a fundamental mechanism for protecting data integrity when files are being used by multiple concurrent users or processes.