xt.notify_fork.example">Example</a>
        </h6>
<p>
          The following code illustrates how to incorporate the <code class="computeroutput">notify_fork()</code>
          function:
        </p>
<pre class="programlisting">my_execution_context.notify_fork(execution_context::fork_prepare);
if (fork() == 0)
{
  // This is the child process.
  my_execution_context.notify_fork(execution_context::fork_child);
}
else
{
  // This is the parent process.
  my_execution_context.notify_fork(execution_context::fo