On Monday 22 June 2009 12:01:19 Konrad Hinsen wrote:
> Java threads, according to the documentation:
>
> clojure.core/future
> ([& body])
> Macro
>    Takes a body of expressions and yields a future object that will
>    invoke the body in another thread, and will cache the result and
>    return it on all subsequent calls to deref/@. If the computation has
>    not yet finished, calls to deref/@ will block.
>
> The macro future is used in the implementation of pmap.

If that is spawning a new thread every time a future is created then it is 
really for concurrent programming rather than parallel programming.

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e

--~--~---------~--~----~------------~-------~--~----~
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