- 博客(3)
- 收藏
- 关注
原创 ReadableByteChannel 复制到WritableByteChannel 通道 demo1
private static void channelCopy(ReadableByteChannel src,WritableByteChannel dest) throws IOException{ ByteBuffer buffer=ByteBuffer.allocate(10*1024); while(src.read(buffer)!...
2012-07-13 14:02:40
1167
原创 synchronized
1. 不能实现同步 每个对象有自己的锁。。。。、public class ThreadTest extends Thread { private int threadNo; public ThreadTest(int threadNo) { this.threadNo = threadNo; } pu...
2012-07-06 11:40:28
69
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人