...
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.
API | Method(s) | Notes |
---|---|---|
java.lang.Object | wait | |
java.lang.Process | waitFor | Windows only |
java.io.File | All file I/O operations | |
java.io.FileInputStream | open, read, skip | |
java.io.FileOutputStream | open, write | |
java.io.RandomAccessFile | open, read, write, seek | |
java.net.InetAddress | All lookup operations | InetAddress SPI in the works that will allow deploying a virtual thread friendly name resolver |
java.nio.MappedByteBuffer | force | |
java.nio.channels.Selector | All blocking selection operations | |
java.nio.channels.FileChannel | read, write, lock, truncate, force, transferTo | |
java.nio.file | All 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.
...
Overview
Content Tools
ThemeBuilder