[Mono-list] GUI, threads, etc...
Mon, 15 Mar 2004 17:52:24 -0500
On Mon, 2004-03-15 at 18:43, Moritz Angermann wrote:
> btw: does mono have something like fork( ) or are Threads for this
> purpose adequate use?
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 don't think fork(2) would be useful for automatically updating a
TreeView, as you'd be creating a new process, duplicating the entire
address space (*including* the TreeView, and everything else), and
preventing the child process from modifying the TreeView of the parent
process (as it's in a different address space).
So threads are probably what you want anyway, unless I'm
misunderstanding what you're asking.