Thread View: mod.computers.68k
1 messages
1 total messages
Started by dillon
Wed, 11 Mar 1987 21:47
Re: forking around
Author: dillon
Date: Wed, 11 Mar 1987 21:47
Date: Wed, 11 Mar 1987 21:47
16 lines
1381 bytes
1381 bytes
You cannot fork() in the UNIX sense of the word without an MMU period. There is no way for the system to know which variables contain pointers, or even which address registers currenty contain pointers, and thus without an MMU to map a COPY of the data and stack segments (assuming the code segment is not self modifying) to *exactly* the same address on the forked process, you simply cannot do it. Now, there is one possible solution, but it involves making ALL pointers relative to some segment, and also means a program must always make references in one instruction (e.g. you cannot take the effective address of something and then indirect through it). Something you could do, though is a combination fork+exec call. -Matt
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads