/ Published in: Clojure
Creates number of threads (specified by 'threads-number') running fn-name function. This is possible, because every Clojure function implements Runnable interface.
Expand |
Embed | Plain Text
(doall (take threads-number (repeatedly #(doto (Thread. fn-name) (.start)))))
You need to login to post a comment.
