Mail Archives: djgpp/2004/05/20/13:15:54
> From: 048321887-0001 AT t-online DOT de (Udo Kuhnt)
> Newsgroups: comp.os.msdos.djgpp
> Date: 20 May 2004 06:40:00 -0700
>
> So any attempt to add support for native multitasking to the library itself
> would also have to start from scratch.
Yes.
> The documentation is not very detailed, but as I understand it, X_PCreate
> creates a new process (or rather a new thread) in the same address room,
> while Z_Dom_Fork copies the entire address room, which probably includes the
> file handles of the calling process.
Z_Dom_Fork is clearly documented to run the same program, but it
creates a process in a separate VM, which is not very helpful for us,
since there's no way to inherit file handles between VMs (otherwise we
could have easily implemented `fork' on Windows by using the Windows
`start' command). If our `fork' doesn't inherit file handles, the
programs that use it will not work, as on Unix the child always
inherits the parent's handles.
It would be interesting to see what happens with this aspect of the
process created by X_PCreate.
- Raw text -