{"type":"rich","author_url":"https://blog.hatena.ne.jp/hasiduki/","published":"2011-04-16 22:32:19","provider_name":"Hatena Blog","image_url":null,"height":"190","description":"from threading import Thread, Semaphore, Lock import time semaphore = Semaphore(1) lock = Lock() \u301c\u301c\u4e2d\u7565\u301c\u301c def run(self): self.n = 1 while True: self.Pause() print self.name,self.n time.sleep(1) self.n += 1 def Pause(self): #semaphore.acquire() lock.acquire() if self.n % 5 == 0: for i in xrange(3): tim\u2026","blog_url":"https://hasiduki.hatenadiary.org/","provider_url":"https://hatena.blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhasiduki.hatenadiary.org%2Fentry%2F20110416%2F1302960739\" title=\"\u6392\u4ed6\u51e6\u7406\u3082\u3084\u3063\u3066\u898b\u308b - \u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u6392\u4ed6\u51e6\u7406\u3082\u3084\u3063\u3066\u898b\u308b","author_name":"hasiduki","width":"100%","url":"https://hasiduki.hatenadiary.org/entry/20110416/1302960739","categories":[],"blog_title":"\u65e5\u8a18"}