Return to Snippet

Revision: 55686
at February 17, 2012 07:00 by ef


Initial Code
(doall (take threads-number (repeatedly #(doto (Thread. fn-name) (.start)))))

Initial URL


Initial Description
Creates number of threads (specified by 'threads-number') running fn-name function. This is possible, because every Clojure function implements Runnable interface.

Initial Title
Starting multiple threads

Initial Tags


Initial Language
Clojure