Linux 中的文件锁

前言:

多线程/进程中为了共享数据的安全, 选用linux 自带的flock 文件锁

 

详情链接: https://reishin.me/python-module-fcntl/

 

python 使用是 fcntl 模块(个人觉得是 file controller 的缩写)

posted @ 2022-06-29 10:44  萤huo虫  阅读(48)  评论(0编辑  收藏  举报