Linux 中的文件锁
前言:
多线程/进程中为了共享数据的安全, 选用linux 自带的flock 文件锁
详情链接: https://reishin.me/python-module-fcntl/
python 使用是 fcntl 模块(个人觉得是 file controller 的缩写)
多线程/进程中为了共享数据的安全, 选用linux 自带的flock 文件锁
详情链接: https://reishin.me/python-module-fcntl/
python 使用是 fcntl 模块(个人觉得是 file controller 的缩写)