From kde-kimageshop Fri Sep 10 08:11:43 1999 From: Matthias Elter Date: Fri, 10 Sep 1999 08:11:43 +0000 To: kde-kimageshop Subject: Re: Threading X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=93695153609334 Am Mon, 06 Sep 1999 schrieb Bavo De Ridder: > >%_Hello, > > I have a design question concerning the threading library in kimageshop. > When I was trying to generalize the interface so we could dynamically load > the desired threading library, I stumbled over the following problem: > whenever I tried to design a generic interface I always found myself > designing POSIX again. This means that it is very difficult to make the > library generic so a lot of threading libraries can be used. > > Currently there are two kinds of threading libraries available: > 1) POSIX implementations, these are standardized in the header files > 2) libaries which don’t follow the POSIX standard and are mostly > unusable for any industrial strength applications. > > To conclude: until now I see good reasons not to implement a generic > threading library. Instead we could stick with Pthreads (POSIX threads). > Every platform capable of multithreading supports POSIX threading. Platforms > not supporting POSIX threads often have only very poor and unreliable > alternatives. Userspace level threads are completely unacceptable since they > will actually degrade performance instead of increasing performance. > > What do you think about this ? I think we should stick with Pthreads _if_ all platforms supported by KDE have a sane Pthreads implementation. Greetings, Matthias -- Matthias Elter me@kde.org / me@main-echo.net KDE developer