[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Re: GNUbgGTK threads

From: Joern Thyssen
Subject: [Bug-gnubg] Re: GNUbgGTK threads
Date: Fri, 28 Jun 2002 07:46:59 +0000
User-agent: Mutt/

On Fri, Jun 28, 2002 at 12:49:06AM +0200, sev_notrump wrote
>  Thursday, June 27, 2002 8:59 PM Journ Thyssen wrote
> <Yes, that's true, but if you don't do it multithreaded then gnubg will
> <be busy analysing the move, and player B cannot move the chequers or
> <anything else until gnubg has finished the analysis. 
> In java you can avoid the mechanism described above by issuing
> "DoEvents() " In the Java Programming Language they also use threads,
> and they are easy to create.

I still maintain that it's not so simple. The user may initiate an
operation via the GUI that will update the same analysis that's running
in the background.

It's also very simple to create threads in C, but you have to write code
so you avoid race conditions, and furthermore you have to make sure that
your program is threadsafe. 

Of course, the cheap way of doing the analysis in the background is to
"freeze" the GUI whilst the analysis is going on, that is,


Joern Thyssen, PhD
Vendsysselgade 3, 3., 9000 Aalborg
+45 9813 2791 (private) / +45 2077 2689 (mobile) / +45 9633 7010 (work)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]