This question is similar to Assigning a thread to specific CPU core
However, it doesn't go into much details. Can we assign thread to a particular core in Java env. I chatted with technology department head of in a buy side firm and came to know that creating x worker threads and assigning them to x cores (dedicated core for each worker thread) provides best latency in trading applications. I wonder how can we do it?