Groovy, Gpars, Parallelism, Concurrency, Java.
numbers.parallel.collect { it * it } println squares } In this example, we square each number in the numbers range in parallel, resulting in a new list of squared numbers. Actors Actors are another powerful concurrency model offered by GPARS. An actor is an object that processes messages in a