From mint-bounce@lists.fishpool.fi Fri Jul 25 16:11:58 2008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:cc:subject:references:in-reply-to :content-type:content-transfer-encoding:sender; bh=3YToncbr+WX2ST+8nKGJlrGF3XjYTl8lcTT+93ZiI/w=; b=drjz9VkxGPh+VBalIxwgkdbQ+Tr4p4hiTWqkuh1OMDo3KzN/tx4cvnmI2CAUIwXhle vN4SBergYcxkuRf34ffXbAzEVUa67yHIkewFHrBwOaumIFAi4RP1h5pwHgP5a1mLsF8j zlEssoozyeLyZQ7OhOS7ca/h/HgRVB1Ot/jCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:cc:subject:references :in-reply-to:content-type:content-transfer-encoding:sender; b=PSpsC3ATm5Mge40tH7TaLqlgdECT5NIn8hEhY30DX0EefuksaMR/0aFNVIblPAiybJ Je71br0h/VHjhHh0dt0sJ/RS8JoyC3a4HXZ1vQvjT8roQpctNoLH/W0CT8Kv9AVSb58H 3CTrt7DFi/iqKrnnt6uJB3qqHUfeJDIqqEweE= Message-ID: <488A222C.7070603@gabo.pl> Date: Fri, 25 Jul 2008 20:57:48 +0200 From: =?UTF-8?B?QWRhbSBLxYJvYnVrb3dza2k=?= User-Agent: Thunderbird 2.0.0.16 (X11/20080725) MIME-Version: 1.0 CC: mint Subject: Re: [MiNT] Fork behavior (forkpty) References: <000aad4c.019a88caa1d2@smtp.freeola.net> <1216575200.20735.0.camel@localhost> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: atari@gabo.pl Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Peter Persson pisze: > Hi ppl, > > I'm experiencing some weird stuff when using forkpty(). It seems to > hog much more cpu than if I just start the same number of processes. > Can anyone shed some light on this subject? IIRC, becouse of some basepage magic needed to be done when switching context of threads that belong to single process, fork is not a very good idea in FreeMiNT. IIRC (again) MiNTLib fork() has a workaround for that that actually creates new process in the same address space (instead of just forking). Adam Klobukowski