{"blog_title":"\u304b\u305b\u304d\u306e\u3046\u3055\u304e\u3055\u3093","width":"100%","height":"190","version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitasuke.hatenadiary.org%2Fentry%2F20121218%2Fp1\" title=\" \u8ab0\u304cthreading\u3067\u4f5c\u3063\u305f\u30b9\u30ec\u30c3\u30c9\u306e\u5f8c\u59cb\u672b\u3092\u3057\u3066\u3044\u308b\u306e\u304b - \u304b\u305b\u304d\u306e\u3046\u3055\u304e\u3055\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","description":"\u30e1\u30a4\u30f3\u30b9\u30ec\u30c3\u30c9\u304c\u7d42\u4e86\u3059\u308b\u3068\u3001_thread\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u4f5c\u3063\u305f\u30b9\u30ec\u30c3\u30c9\u306f\u7d42\u4e86\u3057\u3066\u3057\u307e\u3046\u3002 #! python3.3 import _thread import time def func(): ident = _thread.get_ident() print('thread {} starts'.format(ident)) time.sleep(5) print('thread {} ends'.format(ident)) print('main thread starts') _thread.start_new_thread(func, ()) time.sleep(3) print('\u2026","categories":["Python"],"author_name":"itasuke","author_url":"https://blog.hatena.ne.jp/itasuke/","url":"https://itasuke.hatenadiary.org/entry/20121218/p1","image_url":null,"title":" \u8ab0\u304cthreading\u3067\u4f5c\u3063\u305f\u30b9\u30ec\u30c3\u30c9\u306e\u5f8c\u59cb\u672b\u3092\u3057\u3066\u3044\u308b\u306e\u304b","blog_url":"https://itasuke.hatenadiary.org/","type":"rich","published":"2012-12-18 00:00:00"}