Issue with Windows IOCP not ***really*** writing data

Joel Buckley leojava at comcast.net
Thu Dec 24 12:10:51 PST 2009


Hello,

I am utilizing AsynchronousFileChannel() to write out data
on OpenSolaris, Linux, and Windows...  Everything works
nicely on OpenSolaris & Linux.  However, Windows
indicates all writes completed normally, but when inspected
later only the first IO actually was written.  What gives?

 From http://openjdk.java.net/projects/nio/resources/AsynchronousIo.html
I see the following statement:
"On Windows, the thread pool keep alive must be disabled.
 This restriction arises because I/O operations are tied to
 the initiating thread by the kernel. If a thread terminates
 then outstanding I/O operations that it has initiated may
 be aborted."

How is that done?

Cheers,
Joel.


More information about the nio-discuss mailing list