У меня вопрос новичка, поэтому я начал изучать библиотеку Java Affinity, и у меня есть следующий код:
public static void main(String[] args){
AffinityLock l = AffinityLock.acquireLock(5);
Thread.currentThread().setName("Testing");
System.out.println("\nThe assignment of CPUs is\n" + AffinityLock.dumpLocks());
while(!Thread.currentThread().isInterrupted()){
}
}
, и у меня есть вывод:
The assignment of CPUs is
0: General use CPU
1: Reserved for this application
2: Reserved for this application
3: Reserved for this application
4: Reserved for this application
5: Thread[Testing,5,main] alive=true
...
Но если яgo ps -alF, я вижу, что процесс не работает на PSR 5. Я что-то упускаю из виду?
Спасибо большое !!- Mag