AnsweredAssumed Answered

Java NIO Selector bug?

Question asked by filipesmedeiros on Dec 27, 2018
Latest reply on Dec 28, 2018 by misterj

Hello everyone, first time posting.


I am currently developing a Java project in which I use the Java NIO Selector. But something happens. The problem is quite difficult to explain by words, but the short of it is that the program runs as intended on my laptop (Intel i7 CPU, Windows 10 Home), but bugs out on my desktop (Ryzen 2700x, Windows 10 Education). I believe what's happening is that the selector is not firing as soon as channels become readable, acceptable, etc. Sometimes they seem to not fire at all.


Does anyone know if the Selector class (and related ones like SelectableChannel) use architecture specific calls that would change from Intel to Ryzen CPUs, and if so, is there any way I could fix that by changing my code? Also, are there any known issues between any Java classes or packages (standard JDK), or specifically the NIO package, and AMD/Ryzen CPUs?


Thank you in advance.