From owner-mint@fishpool.com Sat Oct 4 12:42:00 2003 Message-ID: <004701c38a63$b9189fe0$260a63d9@blaszak> Reply-To: "Konrad Kokoszkiewicz" From: "Konrad Kokoszkiewicz" To: References: Subject: Re: [MiNT] Multi-threading on MiNT OS ? Date: Sat, 4 Oct 2003 12:33:20 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-Virus-Scanned: by amavisd-new X-MIME-Autoconverted: from 8bit to quoted-printable by antyk.obta.uw.edu.pl id h94AVG7u007585 Delivered-To: mint@fishpool.com Delivered-To: mint@lists.fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: draco@obta.uw.edu.pl Precedence: bulk List-help: List-unsubscribe: List-ID: X-List-ID: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by prinz.cs.uni-magdeburg.de id h94AfY017586 Hi! >>>> tfork() creates a child process which runs concurrently with the >>>> parent and shares all the memory with the parent. > >>> Except the stack ;-) > >> Indeed. And basepage. > > So, do I need to define a stack for the process myself? No, the function does it on its own, IIRC. Of course you have to define the stack when you try to implement the function on your own. See mintlib (thread.c). > And my last question: it's compatible with MagiC? I know that it's > true for the Pfork() function, but what about tfork()? tfork() isn't a system function. tfork() is a MiNTLib function that uses system functions like Pexec() and Mshrink() to perform. As long as MagiC implements these, it is compatible. -- CVV Konrad M.Kokoszkiewicz, http://draco.atari.org ** Ea natura multitudinis est, aut seruit humiliter, aut superbe dominatur. ** Taka to już natura pospólstwa, albo służalczo się płaszczy, ** albo bezczelnie się panoszy. (T. Liuius XXIV, 25).