Does Java's SocketChannel.read() method synchronize the output buffer?
In other words: is there a lock on the ByteBuffer argument passed to the read(ByteBuffer)
method in java.nio.channels.SocketChannel (basically any channel). I need to know this so I don't have unnecessary synchronization blocks.
Java-Doc for SocketChannel says:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.