[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] threads (was: UNIXMODE defaults)
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"