AsynchronousFileChannel.open() - is it blocking? (original) (raw)

Zhong Yu zhong.j.yu at gmail.com
Thu Mar 1 14:52:02 PST 2012


Is open() a potentially blocking action? Apparently so because some sanity checking (e.g. existence of the file) requires disk spin. If that's the case, it should probably be explicitly documented.

And after open(), are following methods blocking or non-blocking?

size();
truncate();

Thanks, Zhong Yu



More information about the nio-dev mailing list