[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MMU usage in MiNT, fork/mmap



Hello!

A proper fork() is for sure possible. It's just not very efficient (that's
why shell scripts (for example configure) are so slow (they use heavily
fork()).

I assume it does a copy of the entire parent's address space .. but what
about pointers in the parent? Wouldn't they point to the parent's
memory and not the child?  Or is there some method of fixing that?

the FreeMiNT fork() duplicate the parent address space in a shadow memory area that is swapped to the original location on each context switch.


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de