Re: [linux-audio-dev] GThread vs. pthread

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] GThread vs. pthread
From: Paul Davis (paul_AT_linuxaudiosystems.com)
Date: Sat Jun 12 2004 - 07:10:17 EEST


>Does anybody have any opinion on which threading system is superior?
>I've been using glib for a lot of things, but for whatever reason I'm
>hesitant about using it for threading if the only benefit it will
>provide is consistency (I'm guessing it's just a wrapper for pthread
>anyway).

yes, its just a wrapper. there's nothing in the semantics of GThread
that isn't present in pthreads; conversely, pthreads does have a few
corners here and there that GThreads don't wrap because they don't
exist in some of the other thread systems that GThreads
supports. you're unlikely to need them. personally, i prefer to use
pthreads because its a fully specified standard that is independent of
any particular platform. otoh, there is a very similar argument for
GThread.

--p


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sat Jun 12 2004 - 07:07:30 EEST