Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
27 crawler(s) on-line.
 81 guest(s) on-line.
 1 member(s) on-line.


 DiscreetFX

You are an anonymous user.
Register Now!
 DiscreetFX:  19 secs ago
 OneOfNine:  6 mins ago
 Lou:  24 mins ago
 zipper:  30 mins ago
 amigakit:  33 mins ago
 nikosidis:  50 mins ago
 Gunnar:  1 hr 4 mins ago
 BigD:  1 hr 14 mins ago
 pixie:  1 hr 23 mins ago
 danwood:  2 hrs 4 mins ago

/  Forum Index
   /  Amiga OS4.x \ Workbench 4.x
      /  Which threads is which (thread libraries)?
Register To Post

PosterThread
Xenic 
Which threads is which (thread libraries)?
Posted on 9-Apr-2008 16:21:11
#1 ]
Super Member
Joined: 2-Feb-2004
Posts: 1246
From: Pennsylvania, USA

I finally decided to D/L & install Tunenet and found this requirement listed in the Tunenet readme:

pthread.library V1.4+ (available from OS4 Depot)

I searched OS4 Depot and found pthreads.lha which contains threads.library 1.4. In my current LIBS: directory I found threads.library 1.5 and pthreads.library 52.2. The v1.5 threads.library is over 1 MB in size while the other 2 are 26kb and 32 kb respectively.

Which is the real thread library and which ones can I get rid of?

_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
salass00 
Re: Which threads is which (thread libraries)?
Posted on 9-Apr-2008 17:28:29
#2 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@Xenic

Delete threads.library 1.4 (as it is an older version) and keep the other two. Until an updated SDK is released most OS4 compiled programs will be using threads.library instead of the newer pthreads.library.

 Status: Offline
Profile     Report this post  
sundown 
Re: Which threads is which (thread libraries)?
Posted on 9-Apr-2008 21:48:02
#3 ]
Elite Member
Joined: 30-Aug-2003
Posts: 5120
From: Right here...

@salass00

Trouble is, threads.library v1.5 is in the SDK, & most ppl most likely don't have that install, like me. I have the SDK archive, so was able to dig out the 1.5 version without installing.

So why wasn't the 1.5 version uploaded to OS4 Depot?

_________________
Hate tends to make you look stupid...

 Status: Offline
Profile     Report this post  
Xenic 
Re: Which threads is which (thread libraries)?
Posted on 10-Apr-2008 16:24:26
#4 ]
Super Member
Joined: 2-Feb-2004
Posts: 1246
From: Pennsylvania, USA

@salass00

OK. The SDK release is long overdue. It already looks like we'll be stuck with 2 thread libraries in our LIBS: directory. The major developers are using the new one and the rest of us the old one. Thanks for the info.

_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
Xenic 
Re: Which threads is which (thread libraries)?
Posted on 10-Apr-2008 16:28:36
#5 ]
Super Member
Joined: 2-Feb-2004
Posts: 1246
From: Pennsylvania, USA

@sundown

Quote:
So why wasn't the 1.5 version uploaded to OS4 Depot?


I think a better question is why the name was changed instead of making the new one backward compatable and use the same name. Now we need both libraries.

_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
EntilZha 
Re: Which threads is which (thread libraries)?
Posted on 29-Apr-2008 10:21:11
#6 ]
OS4 Core Developer
Joined: 27-Aug-2003
Posts: 1679
From: The Jedi Academy, Yavin 4

@Xenic

threads.library is the publically available pthreads compatible library.

pthread.library is part of OS4.

The reason for the incompatibility is two-fold:

First of all, the threads.library uses structures for some data (like mutexes). That means that future versions would need to keep those (yeah, I know, it was a mistake to use structures in the first place). pthreads.library uses uint32 for those data structures.

Secondly, the new pthreads.library needs kernel support that is only available in the latest update. Therefore, I didn't pull off threads.library from OS4depot since it can still run on earlier OS4 installations.

Sorry for the mess...

_________________
Thomas, the kernel guy

"I don't have a frigging clue. I'm norwegian" -- Ole-Egil

All opinions expressed are my own and do not necessarily represent those of Hyperion Entertainment

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle