From mint-bounce@lists.fishpool.fi  Thu Jul  7 18:06:00 2005
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Subject: Re: [MiNT] Possible to have thread-like with MiNT ?
From: Evan Langlois <Evan@CoolRunningConcepts.com>
To: Patrice Mandin <mandin.patrice@wanadoo.fr>
Cc: Mint list <mint@fishpool.com>
In-Reply-To: <20050707161036.25f2eee3.mandin.patrice@wanadoo.fr>
References: <20050707161036.25f2eee3.mandin.patrice@wanadoo.fr>
Content-Type: text/plain
Date: Thu, 07 Jul 2005 11:02:14 -0500
Message-Id: <1120752135.16851.100.camel@taro.coolrunningconcepts.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1.1 
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - esc14.midphase.com
X-AntiAbuse: Original Domain - fishpool.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - CoolRunningConcepts.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: Evan@CoolRunningConcepts.com
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=AWL,
 BAYES_00
X-Spam-Level: 

On Thu, 2005-07-07 at 16:10 +0200, Patrice Mandin wrote:
> Hello,
> 
> I would like to know if it would be possible (using a custom mode for
> Pexec()) to run a new program in the same address space as the one that
> created it (like a standard unix thread).
> 
> I would like to use it to process audio (for /dev/audio or Xbios
> functions) without using Timer A interrupts.
> 

Yes, and if you mean you want to run a function in a new thread, the
Pexec() stuff has been wrapped into the mintlib call tfork().

If you want to run an entirely new program, it wouldn't be the same
address space, so if I understand you correctly, tfork() is what you
want.


