[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Multi-threading in SWT
|
See:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/fa
q.html#uithread
"David Wegener" <d.wegener(spamblock)@attbi.com> wrote in message
news:bfq7e5$hr9$1@xxxxxxxxxxxxxx
> Running multiple threads in Eclipse is the same as in any other Java
> application. Create the thread and call the start() method. The
> display.asyncExec() method is only used when a non-display thread needs to
> update the display. The runnable that you pass should only contain the
code
> needed to update the display and then return. If you aren't updating the
> display, you shouldn't be using display.asyncExec();
>
> "Ken George" <kenneth.v.george@xxxxxxxxxxxxxxx> wrote in message
> news:bfq0br$bg4$1@xxxxxxxxxxxxxx
> > Maybe I just have not been able to find it in the forum, but I have an
XML
> > parser that is actually reading from a socket and parsing in the
> > background. However, it appears that the thread does not start. When I
> > use display.syncExec(Runnable) or display.asycExec(Runnable), the GUI
> > freezes (I am running outside of Eclipse). Any idea on how to get
> > multiple threads to run that do not update the UI using SWT?
> >
>
>