Manage threads and remove latency

With the Chronicle Thread Affinity library you can increase your applications’ performance by allowing threads to be bound to specific cores

What is Chronicle Thread Affinity?

Chronicle Thread Affinity allows you to manage threads easily while overcoming the latency issues when using the thread scheduler. Traditional thread schedulers often suspend important threads, and give time to a less important thread. Every time a thread stops cache lines have to be reloaded meaning tasks can run up to 5 times slower.

While you prioritise threads you may want threads that never stop and you want them to run all of the time on their own CPUs and maybe even their own cores.

You can easily allocate priorities via Thread Affinity means you remove that tedious task of allocating threads manually. You specify that, thread X must be assigned to one core, and Y and Z should use the same core, but different CPUs. The library will find isolated CPUs, and assign the threads based on the rules you provide, on a best effort basis. If you don’t have isolated cores, it will do its best.

Visit Chronicle Thread Affinity on GitHub >
Chronicle Thread Affinity

More Information

Maven: Download

GitHub: Source Code

Source Code Documentation: JavaDoc

StackOverflow: Questions

Why Chronicle Thread Affinity?

Thread Affinity binds cores to threads from java, in a declarative way and the same configuration will work on a variety of machines. The Chronicle Thread Affinity library can increase your applications’ performance by allowing threads to be bound to specific cores. This is a benefit if the data is already on the cores L1 cache, because it won’t have to be reloaded. The open source Thread Affinity library is the ideal choice if you are writing low latency code.

Get Thread Affinity

Thread Affinity library can increase your applications’ performance by allowing threads to be bound to specific cores. This is a benefit if the data is already on the cores L1 cache because it won’t have to be reloaded. The open source Thread Affinity library is the ideal choice if you are writing low latency code.

See the benefits of Chronicle's products in action

At Chronicle, we believe less is more. Learn more about why and how Chronicle can support your business and how it can increase efficiency and streamline your systems and workflows by speaking with one of our experts.

We can also offer you our release notes.

By completing this form, I agree that Chronicle Software may keep me informed of its products, services and offerings. To view our privacy policy, click here. To unsubscribe click here.