Groovy Concurrent

초간단 쓰레드 예제

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