<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suganoo</author_name>
  <author_url>https://blog.hatena.ne.jp/suganoo/</author_url>
  <blog_title>S氏はたまにblogを更新してます</blog_title>
  <blog_url>https://blog.suganoo.net/</blog_url>
  <categories>
    <anon>golang</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>Goでプログラムを書くと処理が早い。ファイル処理のプログラムを書いていたのだけど 1ファイルの変換プログラムを書いたら、そのまま並列処理をさせようと設計検討をしていた。そしたら上司から「順番は意識しなくていいのだから、1CPUで1ファイル処理させるようにしてから並列させてスループットを上げてね」と言われた。何を言ってるのだろうと思ったけど、新しい知見が理解できたのでメモしておく。 普通のプログラムはCPUを全部使う プログラムを実行させるとそのプログラムを終わらせるために全CPUを使って処理を行う。ターミナルでtopコマンドを実行してみよう。 topこのとき top -d1とかしてやれば、1秒…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.suganoo.net%2Fentry%2F2018%2F02%2F22%2F192901&quot; title=&quot;プロセスの並列とCPUの効率性 - S氏はたまにblogを更新してます&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/suganoo/20180222/20180222170609.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-02-22 19:29:01</published>
  <title>プロセスの並列とCPUの効率性</title>
  <type>rich</type>
  <url>https://blog.suganoo.net/entry/2018/02/22/192901</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
