Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following blocking operations use the ForkJoinPool`ForkJoinPool.ManagedBocker ManagedBlocker` mechanism when invoked from a virtual thread. Parallelism is is temporarily extended expanded until the blocking operation completes.


APIMethod(s)Notes
java.lang.Objectwait
java.lang.ProcesswaitForWindows only
java.io.FileAll file I/O operations
java.io.FileInputStreamopen, read, skip
java.io.FileOutputStreamopen, write
java.io.RandomAccessFileopen, read, write, seek
java.net.InetAddressAll lookup operationsInetAddress SPI in the works that will allow deploying a virtual thread friendly name resolver
java.nio.MappedByteBufferforce
java.nio.channels.SelectorAll blocking selection operations
java.nio.channels.FileChannelread, write, lock, truncate, force, transferTo
java.nio.fileAll file I/O operations

...

The following are some of the blocking operations that use the ForkJoinPool`ForkJoinPool.ManagedBocker ManagedBocker` mechanism by way of the operations in the previous table.

...