python threading編程中的LOCK和RLOCK(可重入鎖)

找到一本PYTHON併發編輯的書, 弄弄。。 #!/usr/bin/env python # -*- coding: utf-8 -*- import threading import time shared_resource_with_lock = 0 shared_resource_with_no_lock = 0 COUNT = 100000 shared_resource_loc
相關文章
相關標籤/搜索