Once the client is connected to the server, reads and writes can be performed via the channels using byte buffers, as shown in Listing 1.
一旦客户端与服务器建立连接,可通过使用字节缓存的通道来执行读写操作,如清单1所示。
Nondirect byte buffers can be passed to channels, but doing so may incur a performance penalty.
非直接字节缓冲区能传给通道,但是这么做也许会遭到一个性能上的惩罚。
Test result showed that this system could record 128m byte real-time data from 8 channels.
试验结果表明,该系统能实时记录8通道128 M字节的数据。
应用推荐