Re: gthreads and file operations



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]