[News] POSIX threads ported to 68k Amiga | ANN.lu |
Posted on 28-Jan-2004 22:27 GMT by whoosh | 28 comments View flat View list |
straight clean port of Ralf S Engelschall's pth-1.4.0 a
non pre-emptive implementation of POSIX threads
to 68k Amiga. This is 2 gcc linker libraries to
enable porting + writing of threaded programs to 68k Amiga.
http://www.whoosh777.pwp.blueyonder.co.uk/pthreads.html
To see a threaded program run on 68k Amiga download and run
"the 5 philosophers":
http://www.whoosh777.pwp.blueyonder.co.uk/test_philo
(requires just ixemul.library),
:this example program uses libpth.a,
The port itself is 2 gcc linker libraries: libpthread.a and libpth.a,
Last December I ported rpm4.0 with databases disconnected
as database support required libpthread.a . So now I
should be able to generate a full port of rpm4.0
(or higher) to 68k,
(its not at the top of my to-do list)
This port took only one day to do,
an attempt at a totally
different pre-emptive implementation of libpthread.a
took well over a week before I gave up.
Anyway the consequence of this port of pth-1.4.0 is
that it will enable porting of threaded programs.
Probably noixemul progs will also be ok.
Even though it is only 1 days work I thought it
was worth an announce as people always say the
classic Amiga cant thread, well it can thread!
The most difficult thing was locating pth-1.4.0 as
I didnt know it existed till I found it, I was
only searching for libpthread.a
No idea if the example program will run on PPC or
Amithlon, email me if you try it on such.
The advantage of being non-pre-emptive is that it
is much more portable and clean.
And if it implements POSIX threading (nightmare specification)
it implements POSIX threading! (non-pre-emption notwithstanding)
The source + necessary fixes to quite bugged configure
are on http://www.whoosh777.pwp.blueyonder.co.uk/pthreads.html
|
|
List of all comments to this article |
POSIX threads ported to 68k Amiga : Comment 16 of 28 | ANN.lu |
Posted by whoosh on 30-Jan-2004 21:23 GMT | @Sigbjorn said:
>Humm, I configured Pth 1.4.0 (or was it 1.4.1?) eons ago on AmigaOS,
>it didn't crash,
68k AmigaOS or other?
did you enable pthread?
did you make it available by any means?
only the configure crashed, nothing else. with pthreads-#? AmigaOS
is not supported and all the tests crash. pthreads-#? is a totally
different implementation of libpthread.a,
er, take a look at what I said about SYS_read, that proves the
configure is incorrect. Perhaps the port will still happen despite
this specific bug. But a bug it is,
>and the final built product even passed all the tests,
so does this one, pthreads OTOH fails all tests I have tried
eg test_sleep,
So far until this day I have never heard mention that
threading on 68k was possible, in fact lack of threading
is one of the usual criticisms levelled at 68k Amiga.
>so maybe, just maybe, you have a messed up GG setup?
possibly, I think I installed some alpha directory stuff
at some point, I will have to go through my install log
to remove all traces of Geeks alpha.
nonetheless that configure is bugged,
@Golem,
er, rpm is right at the centre of Linux, if they have a screwball version
of something so central anywhere on Geek then something sux.
If some obscure port sux thats ok but not rpm,
they cant let something that sux remain on their site, whats the point?
After that experience I wont touch anything in Geeks alpha directory
with a bargepole.
You say the last snapshot is 1999, 5 years,
a real go getting site, eh, sounds like nothing will ever
leave the alpha directory then,
BTW if there are so many who claim libpthread.a exists
why didnt you point it out to me when I ported rpm4.0 and
said databases were disconnected due to no libpthread?
Is it really so hard to create some new subdirectory and
move reasonably tested ports to it?
You are blowing all your energy yelling at me why not
blow that energy more constructively and type a few
"mv alpha/xyz seems_fine_as_far_as_we_can_see/xyz"
commands??
If malfunctioning ports are thrown in with reasonable ones
then chaos will ensue. One of the nice things about
the Geek snapshot directories is they are so reliable,
ie if you download something from there then you are
quite certain it will function. |
|
List of all comments to this article (continued) |
|
- User Menu
-
- About ANN archives
- The ANN archives is powered by #AmigaZeux. It was updated daily (news last: 22-Oct-2004; comments last: 18-May-2005).
ANN.lu was created, previously owned and maintained by Christian Kemp, www.ckemp.com.
- Contribute
- Not possible at this time!
- Search ANN archives
- Advanced search
- Hosting
- ANN.lu was hosted by Dreamhost. Sign up through this link, mention "ckemp" as referrer and he will get a 10% commission on any account you purchase.
Please show your appreciation for any past, present and future work on ANN.lu by making a contribution via PayPal.
|