Daemon threads that don't die?

View: New views
3 Messages — Rating Filter:   Alert me  

Daemon threads that don't die?

by i30817 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does ScheduledThreadPoolExecutor need allow core threads time out to
actually finish even if i set a thread factory that sets daemon true
by default?
_______________________________________________
Concurrency-interest mailing list
Concurrency-interest@...
http://cs.oswego.edu/mailman/listinfo/concurrency-interest

Re: Daemon threads that don't die?

by Martin Buchholz-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://download.java.net/jdk7/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html#getContinueExistingPeriodicTasksAfterShutdownPolicy()
http://download.java.net/jdk7/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html#getExecuteExistingDelayedTasksAfterShutdownPolicy()

On Wed, Oct 21, 2009 at 18:32, Paulo Levi <i30817@...> wrote:
> Does ScheduledThreadPoolExecutor need allow core threads time out to
> actually finish even if i set a thread factory that sets daemon true
> by default?
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest@...
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>
_______________________________________________
Concurrency-interest mailing list
Concurrency-interest@...
http://cs.oswego.edu/mailman/listinfo/concurrency-interest

Re: Daemon threads that don't die?

by David Holmes-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

But if the threads are daemons then the "after shutdown" policy won't even
come into play - the VM will simply terminate once only daemon threads exist
in the VM.

David Holmes

> -----Original Message-----
> From: concurrency-interest-bounces@...
> [mailto:concurrency-interest-bounces@...]On Behalf Of Martin
> Buchholz
> Sent: Thursday, 22 October 2009 11:56 AM
> To: Paulo Levi
> Cc: concurrency-interest@...
> Subject: Re: [concurrency-interest] Daemon threads that don't die?
>
>
>
> http://download.java.net/jdk7/docs/api/java/util/concurrent/Schedu
> ledThreadPoolExecutor.html#getContinueExistingPeriodicTasksAfterSh
> utdownPolicy()
> http://download.java.net/jdk7/docs/api/java/util/concurrent/Schedu
ledThreadPoolExecutor.html#getExecuteExistingDelayedTasksAfterShutdownPolicy
()

On Wed, Oct 21, 2009 at 18:32, Paulo Levi <i30817@...> wrote:
> Does ScheduledThreadPoolExecutor need allow core threads time out to
> actually finish even if i set a thread factory that sets daemon true
> by default?
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest@...
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>
_______________________________________________
Concurrency-interest mailing list
Concurrency-interest@...
http://cs.oswego.edu/mailman/listinfo/concurrency-interest

_______________________________________________
Concurrency-interest mailing list
Concurrency-interest@...
http://cs.oswego.edu/mailman/listinfo/concurrency-interest