在项目中需要用到线程间的通信,参考了网络上和core java volume 2上的介绍,主要方法有两种:
1.在线程中维护一个其它线程的引用,从而实现线程间的通信;
2.create a communication channel that communicate between threads.
http://www.javaworld.com/javaworld/jw-04-1996/jw-04-synch.html
http://www.javaworld.com/javaworld/jw-05-1996/jw-05-mcmanis.html
to be continued......
1.在线程中维护一个其它线程的引用,从而实现线程间的通信;
2.create a communication channel that communicate between threads.
http://www.javaworld.com/javaworld/jw-04-1996/jw-04-synch.html
http://www.javaworld.com/javaworld/jw-05-1996/jw-05-mcmanis.html
to be continued......
项目中需进行线程间通信,参考网络和core java volume 2,主要有两种方法:一是在线程中维护其他线程引用;二是创建线程间通信通道,并给出相关参考链接。
212

被折叠的 条评论
为什么被折叠?



