您的位置:程序门 -> java -> j2se / 基础类



题目讨论


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


题目讨论
发表于:2007-03-14 21:11:41 楼主
if   class   a   needs   to   inform   class   b   about   an   important   event,   what   java   technique   can   you   use?     a   and   b   can   be   in   the   same   thread,   different   threads,   or   different   processes.   list   as   many   as   you   can.

发表于:2007-03-14 21:40:061楼 得分:0
无非就两种直接通知和间接通知
1.通过中间介质如xml,a修改,b实时监控制,介质可以变,自然所用到的技术就很多
2.直接通知,线程间的通讯,wait   sleep   notify     来控制
发表于:2007-03-14 21:49:482楼 得分:0
怎么看起来像observer模式...
发表于:2007-03-14 23:16:353楼 得分:0
agree   with   ls,   i   think   it   is   a   typical   observer   mode   to   apply.
发表于:2007-03-14 23:53:094楼 得分:0
关注,java进程之间通信好象没有固定的方法啊,希望赐教!
发表于:2007-03-15 12:50:335楼 得分:0
in   the   same   thread,   observer   pattern   is   a   good   choice
发表于:2007-03-15 13:09:486楼 得分:0
英语看不懂-_-!
发表于:2007-03-15 14:57:497楼 得分:0
看到是看得懂,但是不知道答案。.
学习一下....
发表于:2007-03-15 15:59:138楼 得分:0
一个字:socket
发表于:2007-03-21 13:32:509楼 得分:0
??
英语不行啊。


快速检索

最新资讯
热门点击