for (i in 1..30) { Thread.start( { def name = Thread.currentThread().name for (j in 1..10) { println "[$name] thread running..." sleep 5 } }); }