From mint-bounce@lists.fishpool.fi  Mon Jul 12 12:13:01 2010
X-ME-UUID: 20100712161045149.248382000A7B@mwinf1902.orange.fr
Date: Mon, 12 Jul 2010 18:10:44 +0200
From: Patrice Mandin <mandin.patrice@orange.fr>
To: mint@lists.fishpool.fi
Subject: Re: [MiNT] threads (was: UNIXMODE defaults)
Message-Id: <20100712181044.eabc464b.mandin.patrice@orange.fr>
In-Reply-To: <201007121356.09040.oak@helsinkinet.fi>
References: <4C224E8E.9020709@atari-source.org>
	<e2c9673eb1bb3e1f9d28db016e9427e6-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUBFBDBTXF5bVkYAXUFwblRXWldbQUUEXlM=-webmailer2@server04.webmailer.hosteurope.de>
	<4C32DBD9.8020405@freesbee.fr>
	<201007121356.09040.oak@helsinkinet.fi>
Organization: Chez moi
X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.12; i486-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: mandin.patrice@orange.fr
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>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o6CGD1HX014219

Le Mon, 12 Jul 2010 13:56:08 +0300
Eero Tamminen <oak@helsinkinet.fi> a écrit:

> Hi,
> 
> On Monday 05 July 2010, Alan Hourihane wrote:
> > On Mon, 2010-07-05 at 14:52 +0200, Jo Even Skarstein wrote:
> > > Ozk made some stuff that made use of threads about 10 years ago, but I
> > > don't know how he did it. Perhaps he can explain if he follows this
> > > list these days.
> >
> > Right, this is GNU pth. Which has a "pthreads emulation". This is all in
> > user-space with jmp table fudging. No kernel support at all.
> 
> Any idea how well that worked on MiNT?

It works, but the application must be properly written to use it, i.e.
calling pth_yield() once in a while to switch threads. It's not
preemptive at all (which a real thread implementation is), too bad when
I discovered that :(.

-- 
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Spécialité: Développement, jeux

"who writes the code, decides"


