Hey everyone,
My current project is a Minecraft server (as some of you know), and I’m trying to create the best thread pattern possible. I was wondering if there is a way for me to explicitly tell my system to plant a thread on a SPECIFIC core/processor thread. My system has 2 cores (2 threads each) and I know that the software will only every be run on rigs with 4+ available “processors” (as determined by Runtime#availableProcessors()). There are only four threads that I think I’ll need to run, so I figured that if I could have each thread run on each core, it would work the best.
So, is there a way to do this? Or am I thinking this completely wrong, and I should do it a different way?
Thanks