[concurrency-interest] Await...Signal - CatchingIllegalMonitorStateException???
tim at peierls.net
Tue Oct 24 17:09:09 EDT 2006
On 10/24/06, David Holmes <dcholmes at optusnet.com.au> wrote:
> It seems like what you might have here is a use for FutureTask. Your main
> thread will create the FutureTask and do a timed get() to wait for the
> result. You pass the FutureTask to your parseThread and it does the actual
> parsing and upon completion marks the Future task as done.
Also take (another?) look at chapter 6 of JCiP, especially section 6.3,
which has an extended example of an activity that waits for another to
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest