异步 I/O 让应用程序能够在不阻塞的情况下读写数据。
The asynchronous I/O allows applications to read and write data without blocking.
一个明显的例子是,操作可以不阻塞地完成时。
One obvious example is when the requested operation can be completed without blocking.
只有在其他线程不拥有锁的情况下才会成功,如果其他线程拥有锁,当前线程就被阻塞。
This only succeeds if another thread does not already have the lock, in which case the current thread is blocked.
应用推荐