From mint-bounce@lists.fishpool.fi Mon Aug 11 21:42:56 2008 Message-Id: <54298535-3235-40B3-8231-CE4523DC5955@gmail.com> From: Peter Persson To: mint In-Reply-To: <20080807222937.3953df82.mandin.patrice@orange.fr> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: [MiNT] pfork(), pvfork(), pexec-hack... Date: Mon, 11 Aug 2008 22:26:14 +0200 References: <20080807222937.3953df82.mandin.patrice@orange.fr> X-Mailer: Apple Mail (2.926) X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: pep.fishmoose@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Hi, I'm fooling around with a project where I use ptyfork() to fork new terminal sessions. To my knowledge, ptyfork() uses fork(), which in turn use pfork(). I'm under the impression that if when I fork a process this way, the "time slot" for the process will be distributed between the forks associated with the process (ok, I don't know how to phrase that but hopefully you get what I mean). Questions. 1. Is this statement correct? 2. Doesn't that mean that it if I have several applications running, it would be faster to launch additional instances of my process rather than forking it? 3. The Atari compendium mentions a way of emulating a concurrent version of the pvfork() call using Pexec. How? I'm sorry if all this is obvious, but I'm new to this part of the OS and I don't fully understand how it's supposed to work. best regards -- Peter