Install libopenhft-affinity-java by entering the following commands in the terminal:
sudo apt update sudo apt install libopenhft-affinity-java
OpenHFT Java Thread Affinity library
The Thread Affinity library can increase applications performance by allowing threads to be bound to specific CPU cores. This is a benefit if the data is already on the cores L1 cache because it won't have to be reloaded. The OpenHFT Thread Affinity library is the ideal choice for writing low latency code.