{"title":"Python\u306emultiprocessing\u3067\u8272\u3005\u306a\u4e26\u5217\u51e6\u7406\u3092\u3059\u308b","version":"1.0","categories":["Python"],"author_url":"https://blog.hatena.ne.jp/atsuhiro-me/","type":"rich","description":"Python\u306emultiprocessing\u3092\u4f7f\u3063\u3066\uff0c\u4e26\u5217\u51e6\u7406\u3092\u8272\u3005\u3068\u3084\u3063\u3066\u307f\u3066\uff0c\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\uff0e \u74b0\u5883 CPU 3.2 GHz Quad-Core Intel Core i5 macOS 10.15.7 Python 3.8.6 4\u500b\u306e\u30d7\u30ed\u30bb\u30b9\u3067\u95a2\u6570\u30924\u56de\u4e26\u5217\u5b9f\u884c\u3059\u308b import multiprocessing import time import os def run(i): print(f\"start worker={i} pid={os.getpid()}\") time.sleep(1) print(f\"stop worker={i}\") return i*2 def mai\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2021%2F01%2F01%2F205313\" title=\"Python\u306emultiprocessing\u3067\u8272\u3005\u306a\u4e26\u5217\u51e6\u7406\u3092\u3059\u308b - \u307f\u30fc\u306e\u307a\u30fc\u3058\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_name":"atsuhiro-me","provider_url":"https://hatena.blog","blog_url":"https://pc.atsuhiro-me.net/","width":"100%","image_url":null,"url":"https://pc.atsuhiro-me.net/entry/2021/01/01/205313","blog_title":"\u307f\u30fc\u306e\u307a\u30fc\u3058","published":"2021-01-01 20:53:13","provider_name":"Hatena Blog"}