{"height":"190","type":"rich","title":"\u3010Python\u3011multiprocessing\u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30bb\u30b9\u4f5c\u6210","author_url":"https://blog.hatena.ne.jp/nandakagoodvibes/","description":"\u3053\u3093\u306b\u3061\u306f\u3002 \u672c\u65e5\u306fPython\u30e1\u30e2\u3067\u3059\u3002 \u6982\u8981 \u5f15\u6570\u306a\u3057\u306e\u95a2\u6570\u3092\u5b9f\u884c \u5f15\u6570\u3042\u308a\u306e\u95a2\u6570\u3092\u5b9f\u884c \u8f9e\u66f8\u578b\u306e\u5f15\u6570\u306e\u95a2\u6570\u3092\u5b9f\u884c \u6982\u8981 multiprocessing\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u542b\u307e\u308c\u307e\u3059\u3002 multiprocessing\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067 \u7279\u5b9a\u306e\u51e6\u7406\u3092\u5225\u30d7\u30ed\u30bb\u30b9\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30d7\u30ed\u30bb\u30b9\u306e\u4f5c\u6210\u306fProcess()\u3001 \u30d7\u30ed\u30bb\u30b9\u306e\u958b\u59cb\u306fstart()\u3001 \u30d7\u30ed\u30bb\u30b9\u306e\u7d42\u4e86\u5f85\u6a5f\u306fjoin()\u3067\u884c\u3044\u307e\u3059\u3002 \u5f15\u6570\u306a\u3057\u306e\u95a2\u6570\u3092\u5b9f\u884c import multiprocessing import os def func(): print(f'[func] parent process id\u2026","image_url":null,"blog_url":"https://nandakagoodvibes.hatenablog.com/","provider_url":"https://hatena.blog","blog_title":"\u306a\u3093\u3060\u304bGoodVibes","published":"2024-10-14 16:47:09","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnandakagoodvibes.hatenablog.com%2Fentry%2F2024%2F10%2F14%2F164709\" title=\"\u3010Python\u3011multiprocessing\u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30bb\u30b9\u4f5c\u6210 - \u306a\u3093\u3060\u304bGoodVibes\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","provider_name":"Hatena Blog","author_name":"nandakagoodvibes","version":"1.0","url":"https://nandakagoodvibes.hatenablog.com/entry/2024/10/14/164709","categories":["Python"]}