/ 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
Copy this code and paste it in your HTML
(doall (take threads-number (repeatedly #(doto (Thread. fn-name) (.start)))))