Hi,<div><br></div><div>How can I fork/clone a process in Erlang, just as the <font face="courier new, monospace">fork</font> in Unix?</div><div><br></div><div>I have searched a lot but just got nothing related to that. I suppose the usage may look like this:</div>
<div><br></div><div><font face="courier new, monospace">case fork() of</font></div><div><font face="courier new, monospace"> {parent, Pid} -> in_parent_process_now();</font></div><div><font face="courier new, monospace"> {child, Pid} -> in_child_process_now();</font></div>
<div><font face="courier new, monospace">end.</font></div><div><br></div><div>Any ideas?</div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>Xiao Jia</div>