我在修改这代码的时候,发现一个类似多线程死锁的问题
Open
- Dominant language
- Python
- Stars
- 23.7k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/jhao104/proxy_pool/blob/555483201cb539729b4b37480720519729bf52b7/Schedule/ProxyCheck.py#L37-L38
这两行代码是不是会导致死锁?如果queue中只剩下一个,两个线程同时过了37行并进入38行,有一个线程get的时候会阻塞在这里。
https://github.com/jhao104/proxy_pool/blob/555483201cb539729b4b37480720519729bf52b7/Schedule/ProxyCheck.py#L54
这句话不太清楚有什么作用?
也有可能我的知识不够,望指点一下
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.