import threading
mutex = threading.Lock()
num = 0
def test1(temp):
global num
mutex.acquire()
for i in range(temp):
mutex python
最新推荐文章于 2024-05-29 19:11:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
import threading
mutex = threading.Lock()
num = 0
def test1(temp):
global num
mutex.acquire()
for i in range(temp):