users@concurrency-ee-spec.java.net

[jsr236-spec users] [jsr236-experts] Re: Thread Shutdown

From: David M. Lloyd <david.lloyd_at_redhat.com>
Date: Thu, 02 Aug 2012 18:01:52 -0500

On 08/02/2012 05:25 PM, Anthony Lai wrote:
> Right. Let's stick with what you suggested then unless others have other
> ideas. We should add to the spec requiring that application component
> providers should check for the shutdown condition when the thread is
> interrupted and try to wrap up the task as soon as possible if
> isShutdown() is true.
>
> Should we extend this requirements on setting the isShutdown() flag for
> MES and MSES as well?

I do not think so: in this case the user isn't managing the threads.
The Runnable task implementation only needs to know that if it is
interrupted, it should stop whatever it was doing, regardless of what
caused the interrupt.

-- 
- DML