文件加锁方法主要有POSIX Locking、No-op Locking、dotfile-file Locking、flock Locking、Named Semaphore Locking以及 AFP Locking6种。