[Tutor] threading and gui programming

Kent Johnson kent37 at tds.net
Tue Mar 20 20:05:48 CET 2007


Ben wrote:
> Hi all,
> 
> I am curious about one thing. I have been doing research on gui 
> programming. One thing that I don't understand is why there are some 
> examples uses threading in the gui examples. Is there any benefits or 
> advantages for using the threading in the gui programming? Thanks.

This is commonly done when a user action starts some kind of processing 
that will take some time. In order for the GUI to remain responsive, the 
long process must be in a different thread. In general, the GUI will not 
respond to new input until the event handler for the user action returns.

Kent


More information about the Tutor mailing list