Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在具有两个子进程的进程 A 中设置了一个锁:
int a = lockf(fic2, F_LOCK, 0);
我可以在进程 B 中解锁它吗:
int b = lockf(fic2, F_ULOCK, 0);
似乎从 B 解锁并没有从 A 释放锁。
任何解释将不胜感激,谢谢