|
|
|
|
|
by SureshG
1672 days ago
|
|
That's case for virtual threads also. It uses ForkJoinPool.ManagedBlocker to add additional threads. "File I/O is problematic. Internally, the JDK uses buffered I/O for files, which always reports available bytes even when a read will block. On Linux, we plan to use io_uring for asynchronous file I/O, and in the meantime we’re using the ForkJoinPool.ManagedBlocker mechanism to smooth over blocking file I/O operations by adding more OS threads to the worker pool when a worker is blocked." |
|