<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>gcc</anon>
  </categories>
  <description>あぁ、昨日のforkがイマイチ掴めていない。なので、実験を重ねる。 printf(&quot;hoge\n&quot;); pid = fork(); hogeは1度しか表示されない。つまり、 | printf(&quot;hoge\n&quot;); | +--+ fork(); | | 親 子であることが、確認できた。最初から実行している訳では無い。あぁ・・・昨日のを読み間違えていた・・・fork(2)は&quot;プロセスを複製する&quot;。つまり、fork(2)は、プログラム(実行ファイル)を複製している訳ではなく、メモリ(スタックとヒープ領域)、CPUのレジスタをコピーし、新たにプロセスを作るってことだ。execした時点でメモリを作りなお…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20070328%2F1175126068&quot; title=&quot; ふつうのLinuxプログラミング 第11章-第12章1 forkがわからねぇ〜。 - ボクノス&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>2007-03-28 08:54:28</published>
  <title> ふつうのLinuxプログラミング 第11章-第12章1 forkがわからねぇ〜。</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20070328/1175126068</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
