What would cause a Clojure program to not immediately exit upon finishing the last statement in the main function?
All I did was to change a (doall (map ...))<
According to the docs:
...[pmap is O]nly useful for computationally intensive functions where the time of f dominates the coordination overhead.
So this probably means there is more overhead using pmap
for your scenario than using map
. The pmap operations are probably taking a little extra time to finish up before the code after pmap
fires.