摘要: 1 为什么要使用锁 运行以下代码 # 模拟多线程 import threading def change_it(n): global num for i in range(1000000): num = num + n num = num - n print(num,'555') threass=[ 阅读全文
posted @ 2020-12-29 16:52 睁yan-ii 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 欢迎跳转到本文的原文链接:https://honeypps.com/architect/distribute-lock-based-on-database/ 参照连接 https://blog.csdn.net/u013256816/article/details/92854794 概述 在单机时代 阅读全文
posted @ 2020-12-29 10:45 睁yan-ii 阅读(1791) 评论(0) 推荐(0) 编辑