Skip to content
The GPars concurrency and parallelism framework for the JVM
Groovy Java Other
Branch: master
Clone or download

Latest commit

Latest commit 7cddf7c Aug 27, 2018


Type Name Latest commit message Commit time
Failed to load latest commit information.
artwork Add variant of logo for use of dark backgrounds. Dec 22, 2015
buildSrc File changes in a way inconsistent with being in version control. Mar 8, 2015
config/codenarc Amend all the files with \n\r ar EOL to be \n EOL, i.e. no \n\r EOLs … Mar 10, 2011
java-demo Updated the default project files to JDK 7 and Groovy 2.2.2 Apr 26, 2014
lib Rearrange some more dependencies, and back out of the Multiverse upda… Mar 29, 2013
licenses Tidy up the lib and licence hierarchy. Dec 11, 2011
src Various changes needed because final is now final not a synonym for def. Aug 1, 2018
.travis.yml Update the Travis-CI build matrix. Assume Trusty or later is the defa… Aug 15, 2018
GPars_CI_only.iml Updated the default project files to JDK 7 and Groovy 2.2.2 Apr 26, 2014
GPars_CI_only.ipr Update the CodeStyle inspection profile Dec 31, 2015
LICENSE.txt user guide Dec 16, 2010
README.idea Updated the idea readme file May 24, 2013
bambooBuild Updated the bamboo build script to correctly generated and package sn… Mar 30, 2012
bambooBuildRelease Added a bamboo script dedicated to release builds Oct 20, 2011
build.gradle Update Gradle Wrapper version. Aug 1, 2018 Update Gradle wrapper. Jun 14, 2018
gradlew Update the Gradle Wrapper. Nov 14, 2017
gradlew.bat Upgrade Gradle and dependency versions. Dec 31, 2016
overview.html Updated the license header (removed GParallelizer) May 24, 2010

Travis-CI master branch: Travis-CI status master | 1_3_X branch: Travis-CI status 1_3_X


The GPars framework ( offers Java developers intuitive and safe ways to handle Java or Groovy tasks concurrently. Leveraging the enormous flexibility of the Groovy programing language and building on proven Java technologies, we aim to make concurrent programming for multi-core hardware intuitive, robust and enjoyable.

GPars - 'coz concurrency is Groovy

The traditional thread-based concurrency model built into Java doesn't match well with the natural human sense for parallelism. While this was not a problem at times, when the level of parallelism in software was low and concurrency offered only limited benefits compared to sequential code, nowadays, with the number of cores on a single main-stream chip doubling almost every year, sequential code quickly looses ground and fails to compete in performance and hardware utilization with concurrent code.

Inevitably, for concurrent programming to be effective, the mental models of concurrent systems interactions that people create in their heads have to respect the nature of human brains more than the wires on the chips. Luckily, such abstractions have been around for several decades, used at universities, in telephone switches, the super-computing industry and some other inherently concurrent domains. The current challenge for GPars is to bring these abstractions up to the mainstream software developers to help us solve our practical daily issues.

The framework provides straightforward Java or Groovy-based APIs to declare, which parts of the code should be performed in parallel. Collections can have their elements processed concurrently, closures can be turned into composable asynchronous functions and run in the background on your behalf, mutable data can be protected by agents or software transactional memory.

For the common scenario that one or multiple results are calculated concurrently but need to be processed as soon as they are available, GPars makes it a breeze to correctly model this with Dataflow. Dataflow variables and channels gives you a handy abstraction of single-assignment multiple-read data elements, while dataflow operators let you build efficient concurrent data-processing networks.

The concept of Actors as an approach to organizing concurrent activities has recently gained new popularity (thanks to the Scala, Erlang, and other programming languages). GPars implements this concept for Java and Groovy developers. With actors support you can quickly create several independent Actors, which consume messages passed to them and communicate with other actors by sending them messages. You then build your solution by combining these actors into a communication network.

For more details, visit the GPars project home page at

You can’t perform that action at this time.