Multhithreading internals in GTK+
- From: Vishwanath Venkatesan <venkates cs columbia edu>
- To: gtk-list gnome org
- Subject: Multhithreading internals in GTK+
- Date: Wed, 2 Dec 2009 10:05:22 -0500
Hi,
I am trying to understand the internals of threading in GTK+-2.0.
From my understanding there are threads generated with GTK+ functions
(ex. Opening a file-dialog) even without explicit threading.
I was trying to instrument a GTK+ based applications like Gedit using
instrumentation tools like PIN. I found that as the instrumentation
overhead increased there were more threads generated. This was weird, as
one would expect, with the notion of threads as workers the number of
threads needs to stay constant for the same input, whatever be the
slowdown.
This probably could be because Gedit does something smart based on the
overhead, which I would highly suspect and moreover I see this with
other GTK based applications too. (or) There are threads generated for
additional events like additional mouse movements etc.
What do you think could be a reason?
Can someone explain?
Thanks
Vish
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]