Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23109

Re: polling IRQs in a thread's code

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail
From markspace <markspace@nospam.nospam>
Newsgroups comp.lang.java.programmer
Subject Re: polling IRQs in a thread's code
Date Sun, 24 Mar 2013 21:16:08 -0700
Organization A noiseless patient Spider
Lines 13
Message-ID <kioiue$tfo$1@dont-email.me> (permalink)
References <thread-20130324233549@ram.dialup.fu-berlin.de> <nospam-1218C9.22571124032013@news.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Mon, 25 Mar 2013 04:14:07 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="fba3415ba68d85d643935af2f52f0b4b"; logging-data="30200"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18f9357Y1cRUVj1311vxedpaDbkOfFH3r0="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
In-Reply-To <nospam-1218C9.22571124032013@news.aioe.org>
Cancel-Lock sha1:hVZP0DLGHhv1MalICih1EEpKcWk=
Xref csiph.com comp.lang.java.programmer:23109

Show key headers only | View raw


On 3/24/2013 7:57 PM, John B. Matthews wrote:

> Also consider SwingWorker<T,V>.

That's an excellent point, I completely spaced on the GUI part of his 
question.  If GUI = Swing, then SwingWorker is an excellent solution to 
many problems.

Also, SwingWorkers can be put in executors, and since it returns a 
Future, there's a convenient Future#cancel() method to kill the thing 
(which does use Thread#interrupt as I suggested earlier).

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: polling IRQs in a thread's code "John B. Matthews" <nospam@nospam.invalid> - 2013-03-24 22:57 -0400
  Re: polling IRQs in a thread's code markspace <markspace@nospam.nospam> - 2013-03-24 21:16 -0700

csiph-web