特别是锁的源代码,它直接由_thread扩展模块实现。
Answered by Tim Peters, the Cpython implementation:
github.com/python/cpython/blob/master/Modules/_threadmodule.c
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.