Re: [gst-devel] Re: RFC: GNOME 2.0 Multimedia strategy
- From: Alan Cox <alan redhat com>
- To: veillard redhat com
- Cc: alan redhat com (Alan Cox), omega temple-baptist com (Erik Walthinsen), Uraeus linuxrising org (Christian Schaller), gnome-hackers gnome org, gnome-sound-list gnome org, gstreamer-devel lists sourceforge net
- Subject: Re: [gst-devel] Re: RFC: GNOME 2.0 Multimedia strategy
- Date: Sun, 20 May 2001 07:41:49 -0400 (EDT)
> The whole debate sounds to me that the current pthread implementation ain't
> good enough. I would rather see it fixed than build the co-thread routines
> within the multimedia libray...
They solve two different problems. Its unfortunate that people muddle the
elegance of co-routines with the ugly great splat called threads.
Co-routines
- Require under 1K of code
- Leave the code flow expressed explicitly thus avoiding near
impossible to debug races
PThreads
- Require a large library
- Require the app does locking
- Are not reliable in glibc 2.0 and iffy in places in 2.1
Unless you want the parallelism (and you need to want it badly as most pthread
apps have shared data problems so dont scale anyway) co-routines have a lot
to offer in terms of writing code as multiple state/event loops not one.
If you are going to use pthreads you need to remember that every time a thread
on CPU#1 touches a resource on CPU#0 you will generate a lot of bus traffic,
stalls until the data passes between the processors and actually end up doing
little useful work.
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]