Re: gthreads and file operations
- From: Olivier Sessink <oliviersessink gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: gthreads and file operations
- Date: Tue, 13 Apr 2010 19:51:32 +0200
Nischal Rao wrote:
the sample code is:
[..]
your use of threading doesn't make sense. All your threads are within a
lock, so you have three threads (main + two threads) but they can never
execute any instructions in parallel, because they all wait for the
global gdk lock.
Everything you want to do in this code should be done without threads,
it will have more performance and less complexity.
Olivier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]