looking for good guide to using ThreadPoolExecutor
All,
I have a pretty simple thing I'm trying to accomplish, and I think
ThreadPoolExecutor might have answers for me, but I'm having trouble putting
it all together.
In a nutshell, i have an app that needs to spawn threads via thread.start(),
adn I need to be able to provide a timeout period for those threads. Should
the thread not complete before the timeout, i need the thread to handle its
timeout, i.e. perform cleanup operations and the like. I could implement
something like this myself with reasonable simplicity, but seems to me I
oughtta try to use what's out there if I can.
anyone with experience using the newer java.util.concurrent stuff have any
advice?
thanks.
Marc
.
Relevant Pages
- Re: Deferred: Connection timed out with...
... There are really just 2 common causes of generalized timeout problems: ... re-examine as a possible cause of trouble today. ... Poor DNS/self-identification hygiene that results in receivers ... people who live behind ridiculously broken firewalls ... (comp.mail.sendmail) - Re: Safari Timeouts, Status Codes 302, 200, and 400 Bad Request
... The client says that after he had this trouble on his Mac Safari, ... tried Firefox 1.5 on a PC and also had the same problem. ... and instead thought this was a timeout. ... (microsoft.public.dotnet.framework.aspnet) - Re: ATA mkIII first official patches - please test!
... > The new code seems to be having trouble with my CMD-649 controllers. ... > I get an ATA_IDENTIFY (from memory) timeout when probing the primary drive ... (freebsd-current) - Re: java http default timeout
... George Daswani wrote: ... There is *NO* default timeout set on HTTPUrlConnection hence it'll block indefinitely. ... And to save the original poster the trouble of finding it: ... (comp.lang.java.programmer) - Re: One shots, timers, etc
... >something that can give me a timeout pulse for up to five minutes. ... >and if a simple R/C network can accomplish what I am hoping to provide. ... I think a 555 circuit with a 5-way rotary switch sounds fine! ... (sci.electronics.design) |
|