Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Java messaging library that is easy to use.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

SlicedBread - Java multithreading made easy

SlicedBread is a library that makes it simpler to program multithreaded applications in Java.

It does so by doing away with "classic" multithreaded staples - that is, shared state using thread-safe objects, locks and synchronizers - versus a set of single-thread processes that send and receive immutable messages.

In a sense it is inspired by Erlang's messaging system, that is in itself based on the Actors model. In another, the over 400 rich pages of "Java concurrency in practice" show how hard it is to write and debug a good-mannered multithreaded application in standard Java.

SlicedBread has been used in production systems for quite a bit of time now with no major issues, so I thought it was something that could benefit the community at large and I'm sharing it.

SlicedBread is licensed under the LGPL.

The documentation for the project is within the ''docs'' folder. I created a small, no-pretence space for discussion and ideas on Google Plus - find it at SlicedBread community .

Happy hacking!

View the SlicedBread Documentation Home Page

What's new

  • Version 0.3.1: added thread pools and better printout of latency metrics.
  • Version 0.2.0: added latency tracking framework.


Requires Gradle.

Get a copy of the GitHub repo and type:

 git clone  
 cd SlicedBread
 gradle clean build

To have everything built from scratch. Dependencies are handled automatically by Gradle.


At the moment, we only require ''slf4j''.


In most cases you do not need to do a manual download, just include JCenter as a central Maven repo:

repositories {
    mavenRepo(url: '') 

dependencies {
    compile 'ch.loway.oss.slicedbread:slicedbread:0.3.1'

As an alternative, you can get a pre-built JAR from Bintray:


When developing, we suggest downloading the the ''-sources'' and ''-javadoc'' JARs as well so you have everything in your IDE.


Licensed under the LGPL (v3).

Something went wrong with that request. Please try again.