|
|
|
|
|
by brokenwren
1334 days ago
|
|
I don't think this is accurate. The Loom documentation says specifically that it is a concurrency model to replace native threads with fibers. It says very little about non-blocking IO, except that it is a use-case that it assists with: https://openjdk.org/jeps/425 The NIO section covers a bit about how the fibers release the channels, but the OS will not know that. Non-blocking IO is about interrupts at the hardware level that let the application code know when bytes are ready to be read or written. Fibers help by fanning out the work, but they don't replace this concept. |
|
This isn't relevant. We only care from the perspective of userspace.