[erlang-questions] How to fork/clone a process in Erlang?
Fri Sep 7 06:21:48 CEST 2012
2012/9/7 Michael Turner <>
> On Fri, Sep 7, 2012 at 1:10 PM, Xiao Jia <> wrote:
> > Well, this is kind of different from what I'm thinking about.
> > The function g() here is just a symbolic stuff, standing for the
> > control flows.
> > Suppose we want to implement a function, split(), which is to create two
> > identical processes on invocation.
> I'm actually having a little trouble with that supposition. Even basic
> UNIX split doesn't produce "identical processes" - for example, one
> process has knowledge that it's the designated parent, the other that
> it's the designated child.
Then forget my "identical" thing :-)
What I meant is just to implement a split() without any knowledge of
subsequent control flows.
> What actual real-world problem are you trying to solve? Maybe Erlang
> already does it in a better way.
I'm just playing around Erlang and wondering if it is possible to have this
It's kind of trying to dig out more stuffs inside Erlang, instead of using
Erlang in the outside world. :-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions