It seems to me that agents and functions like pmap should require
additional coding. Given the problem you've encounter, maybe a cached
thread pool isn't the best choice, especially if one proposal to deal
with this situation is to lower the keep alive value to the point that
this thing isn't much of a pool anymore.

A simple thread-per-task executor service implementation as the
default could work just as well and not require a shutdown. For other
needs, something like an *executor* for client code to provide custom
executors tweaked or implemented as needed, instead of trying to agree
on some policy.

For you case, I'd go for a custom thingy and avoid code that will
leave threads alive.

On Aug 7, 1:46 am, Christian Schuhegger
<christian.schuheg...@gmail.com> wrote:
> Hi all,
>
> I just had a lengthy debugging session behind me to find out why maven
> hangs when trying to execute the "clojure:compile" target of the
> clojure-maven-plugin.
>
> I found out that the problem does not lie in maven but in clojure (or
> in my code if you want to see it that way). My code executes some
> expressions that cause the clojure thread pools to be started. These
> thread pools stay alive after the compilation phase is over. My intent
> would be that such objects are only created when running the program
> but not when compiling it.
>
> The only reference where I found this problem discussed is from
> 2009-06-01:http://code.google.com/p/clojure/issues/detail?id=120
> but I did not find any follow up or recommendation on how to deal with
> such issues?
>
> What is the current recommended way on how to deal with this
> situation?
>
> Many thanks,
> Christian

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to