<div dir="auto">Thank you for your reply.<div dir="auto">Is there any issue which I can follow to track state of such refactoring ?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 9, 2022, 18:24 Alan Bateman <<a href="mailto:Alan.Bateman@oracle.com">Alan.Bateman@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 09/07/2022 13:49, Andrey Lomakin wrote:<br>
> Hi guys.<br>
><br>
> Could you clarify is it OK to <br>
> use com.sun.nio.file.ExtendedOpenOption#DIRECT open option with <br>
> virtual threads or in other words, will reading/writing to the file <br>
> which uses direct IO be converted into the non-blocking call ?<br>
><br>
> And second question, what is the general status of integration of <br>
> FileChannel API with virtual threads<br>
<br>
You can use direct I/O, "force", or any other FileChannel method from <br>
virtual threads. Right now they pin the thread but they increase <br>
parallelism for the duration of the I/O operation so the temporary <br>
pinning should be mostly transparent. In time they make make use of <br>
io_uring and other facilities but there is significantly low level <br>
refactoring require before that will plug in, so not JDK 19.<br>
<br>
-Alan<br>
</blockquote></div>