[concurrency-interest] ScheduledThreadPoolExecutor and shutdown permission check.

Gregg Wonderly gregg at cytetech.com
Tue Apr 29 17:23:45 EDT 2008

Ben Manes wrote:
> Have you tried using a daemon thread factory?  I haven't done much work 
> with applets, but I'd venture that this would allow it to shutdown cleanly.

The exception comes out of the STPE when I call shutdown or shutdownNow.  It is 
performing an permission check that is creating the problem.  A different thread 
type wouldn't help in this case.

Gregg Wonderly

> ----- Original Message ----
> From: Gregg Wonderly <gregg at cytetech.com>
> To: concurrency-interest <concurrency-interest at cs.oswego.edu>
> Sent: Tuesday, April 29, 2008 10:29:46 AM
> Subject: [concurrency-interest] ScheduledThreadPoolExecutor and shutdown 
> permission check.
> I have a STPE that I use in an applet.  At applet shutdown, I'd like to 
> shutdown
> the executor, but alas it requests a Permission check for a 
> RuntimePermission
> that I don't have in an unsigned applet.  It seems kind of silly to 
> demand this
> permission when no other thread management permission exist in the JDK for
> applets.  Am I missing something in consideration of this issue?
> Gregg Wonderly
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu 
> <mailto:Concurrency-interest at altair.cs.oswego.edu>
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest
> ------------------------------------------------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try 
> it now. 
> <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
>  >

More information about the Concurrency-interest mailing list