[Mono-list] GUI, threads, etc...

Marcus mathpup@mylinuxisp.com
Mon, 15 Mar 2004 17:06:34 +0000


On Monday 15 March 2004 10:52 pm, Jonathan Pryor wrote:

> A *direct* equivalent to fork(2)?  No.  The nearest equivalent is
> System.Diagnostics.Process, which is a fork(2)/exec(3) equivalent.
>
> (Minor side question: what would happen if you P/Invoked out to fork(2)
> in libc.so?  Is it safe for managed apps to do that?)

I believe that some special "magic" is required to start up the Mono runtime 
in a new process or thread that's created using facilitiies outside the 
managed libraries (e.g. fork or normal OS thread creation functions).

There is some documentation about that in the "mono" directory. I tried to use 
Qt's QProcess class to start a new process, following those docs, but I was 
never successful.