AsynchronousFileChannel.open() - is it blocking? (original) (raw)
Zhong Yu zhong.j.yu at gmail.com
Thu Mar 1 15:52:26 PST 2012
- Previous message: AsynchronousFileChannel.open() - is it blocking?
- Next message: AsynchronousFileChannel.open() - is it blocking?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
A synchronous action can be blocking or non-blocking. I'm asking the blocking aspect.
On Thu, Mar 1, 2012 at 5:02 PM, Vitaly Davidovich <vitalyd at gmail.com> wrote:
It's probably safe to assume that any method that doesn't return a Future or accepts a CompletionHandler runs synchronously.
On Thu, Mar 1, 2012 at 5:52 PM, Zhong Yu <zhong.j.yu at gmail.com> wrote:
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
- Previous message: AsynchronousFileChannel.open() - is it blocking?
- Next message: AsynchronousFileChannel.open() - is it blocking?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]