On Mon, Feb 15, 2010 at 1:25 PM, Dan Bron <[email protected]> wrote:
> Using these tools, it wouldn't be too hard to write an equivalent to
> Perl's fork() (where we can have another process "immediately
> pick up where we left off", though of course we spawn unrelated
> J processes if we wanted to).

On Unix (Linux, Mac), C's fork (where the child process is a
clone of the parent process except for one bit that distinguishes
the child and the parent) is faster than C's system (which does
a fork and then executes a new process image).

On Windows, C's system is not faster than on Unix, but
C's fork is much slower than system (because it works
by creating a new process and then copying the entire
memory image from the old process into the new process).

So: fork definitely has some elegance, but its elegance does
not go well with Windows.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to