<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonのmultiprocessingを使って，並列処理を色々とやってみて，動作を確認してみました． 環境 CPU 3.2 GHz Quad-Core Intel Core i5 macOS 10.15.7 Python 3.8.6 4個のプロセスで関数を4回並列実行する import multiprocessing import time import os def run(i): print(f&quot;start worker={i} pid={os.getpid()}&quot;) time.sleep(1) print(f&quot;stop worker={i}&quot;) return i*2 def mai…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2021%2F01%2F01%2F205313&quot; title=&quot;Pythonのmultiprocessingで色々な並列処理をする - みーのぺーじ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-01 20:53:13</published>
  <title>Pythonのmultiprocessingで色々な並列処理をする</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2021/01/01/205313</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
