On Jan 25, 2011, at 9:06 AM, Ken Wesson wrote:

> sh is asynchronous. It calls Runtime/exec, which launches the sleep as
> a separate process and immediately returns a Process object (which
> your pmap should be returning a seq of). It may produce n+2 Process
> objects at a time but it produces them all before the first of the
> asynchronous sleep processes finishes, so for a while all of the
> latter are running at the same time.

Really? The documentation for sh claims to return a map, which is what I 
observe. And the call to sh doesn't return until the sub-process has finished, 
even if I discard its return value (so it can't be the case that the resulting 
"map" is actually some lazy thing that blocks when I try to access its 
contents).

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