setAffinity does not work as expected in Windows
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
On win 11 got warning:
"Tried to set affinity to {7} but was {0,1,2,3,4,5,6,7} you may have insufficient access rights"
and nohing heppend - thread remain affined to all cores.
Java version: jdk-21.0.2.13-hotspot (Eclipse Adoptium)
jna and jna-platform verstion: 5.14.0
affinity version: 3.23.3
Thread, for which i try to lock affiniti created by :
Thread.ofPlatform().name("AffinedThread").start(() -> {
try (AffinityLock al = AffinityLock.acquireLock()) {
.....
}
});
Starting console in which java started with Admin rights change nothing.
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenHFT/Java-Thread-Affinity
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
OpenHFT/Java-Thread-Affinity#203 · 1 comment ·
-
Document releases Open
OpenHFT/Java-Thread-Affinity#186 · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
OpenHFT/Java-Thread-Affinity#137 ·
-
OpenHFT/Java-Thread-Affinity#119 · 1 comment · 1 assignee ·
-
OpenHFT/Java-Thread-Affinity#115 · 1 comment · 1 assignee ·
All issues in OpenHFT/Java-Thread-Affinity
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FasterXML/jackson-databind#6229 ·